Following jQuery is not working on given select box.
I want to iterate through all the options of select box.
Where am I going wrong?
Am not getting alert("hi")
, I.E. $("#FileType").find('x:option').each(function(){
is not executing.
<x:select id="FileType" width="210px">
<x:option value="JPG">JPG</x:option>
<x:option value="PNG">PNG</x:option>
<x:option value="PDF">PDF</x:option>
<x:option value="TIF">TIF</x:option>
<x:option value="BMP">BMP</x:option>
</x:select>
$("#FileType").find('x:option').each(function(){
alert("hi");
if($(this).val() == AttachmentExtension)
$("#FileType").val(AttachmentExtension);
});