Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to avoid duplicate values in dropdownlist using jquery

$(".select option").val(function(idx, val) {
  $(this).siblings('[value="'+ val +'"]').remove();
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #avoid #duplicate #values #dropdownlist #jquery
ADD COMMENT
Topic
Name
6+1 =