Wednesday, June 11, 2014

Adding/Removing items to/from dropdown box in sharepoint using jquery

write the bellow in document.ready function.
here numcat is dropdown name

Remove an option :
$(":input[title='numcat']").find("option[value='1']").remove(); 
Add an option
$(":input[title='numcat']").append('');
 

 

No comments:

Post a Comment