Monday 7 July 2014

In IE add and select option dynamically is not working.

$(document).ready(function()
   {
   $("select[title='lookup Required Field']").prepend("<option value='' selected='selected'>-select-</option>");
setTimeout("SelectItem()", 100);
});

function SelectItem()
{
$("select[title=lookup Required Field'] option:eq(0)").attr('selected', 'selected');
}

No comments:

Post a Comment