to add new option to select control with DropDownId id :
$('#DropDownId').append(new Option('text','val'));
to remove option to select control with DropDownId id:
$("#DropDownId option[value='val1']").remove();
$("#DropDownId option:contains('val1')").remove();
No comments:
Post a Comment