Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

reset a select option jquery

$('#baba').prop('selectedIndex',0);
Comment

reset select form jquery

 $('select').each( function() {
        $(this).val( $(this).find("option[selected]").val() );
    });
Comment

reset select option jquery

$('ClassOrIDName').prop('selectedIndex',0); 
// this works perfectly. just put this in any action and your 1st option should be 'select one item' type
Comment

PREVIOUS NEXT
Code Example
Javascript :: .children javascript 
Javascript :: render react in blaze 
Javascript :: javascript colab connect 
Javascript :: class and id in react 
Javascript :: jquery checkvalidity 
Javascript :: javascript array to string 
Javascript :: how to trigger on input event in javascript 
Javascript :: is typescript faster than javascript 
Javascript :: ityped react 
Javascript :: upload multiple files axios 
Javascript :: change index array javascript 
Javascript :: javascript style font size 
Javascript :: how to delete a reply in discord.js 
Javascript :: how to access parent function from iframe 
Javascript :: if checkbox checked jquery value 1 
Javascript :: how to scroll smoothly in to the top in react js 
Javascript :: js get element by attribute 
Javascript :: jquery datatable get column values in array 
Javascript :: js call function by string name 
Javascript :: hex string to buffer nodejs 
Javascript :: react conditionally disable button 
Javascript :: split decimal value in javascript 
Javascript :: foreach loop javascript 
Javascript :: converting a string into a number in javascript 
Javascript :: app.use public 
Javascript :: node mysql 
Javascript :: store data to the browser’s localStorage 
Javascript :: array sort by two properties 
Javascript :: avoid no-param-reassign when setting a property 
Javascript :: regex valid url 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =