Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery remove items from dropdownlist

<script>
$( ".dropdown" ).change(function() {
  dropdownval = $( ".dropdown" ).val();
  $(".dropdown option[value='dropdownval']").remove();
});
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: how do i make a link to direct me to a new page when i click on a button in react 
Javascript :: javascript remove trailing slash 
Javascript :: how to check if a folder exist if not then create nodejs 
Javascript :: prototype pollution 
Javascript :: vertical align text canvas 
Javascript :: javascript string remove backslash 
Javascript :: get id by this jquery 
Javascript :: remove border textinput react native 
Javascript :: remove empty element from array js 
Javascript :: javascript count instances in string 
Javascript :: npm for node types 
Javascript :: javascript check if number is multiple of 3 
Javascript :: change checkbox jquery alert 
Javascript :: //disable-linter-line 
Javascript :: Import file to mongodb database 
Javascript :: get last item in array 
Javascript :: js for in object 
Javascript :: javascript merge two objects 
Javascript :: jquery on hover dynamic elements 
Javascript :: refresh after delete in express 
Javascript :: nestjs change httpcode inside function 
Javascript :: javascript form submit on button click check if required fields not empty 
Javascript :: change html using jquery 
Javascript :: hide browser address bar javascript 
Javascript :: jquery on checkbox change 
Javascript :: npm uniqueid 
Javascript :: prevent form submission on onsubmit function calls 
Javascript :: how to run curl in javascript 
Javascript :: javascript format price 
Javascript :: format date month day year javascript 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =