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

reset select2 jquery | clear select2 option value

$("ClassOrIDName").trigger("change");
Comment

PREVIOUS NEXT
Code Example
Javascript :: circular progress for react 
Javascript :: react dont render until loaded 
Javascript :: how to compare objets in an array 
Javascript :: normalize javascript 
Javascript :: firebase.database.ServerValue.TIMESTAMP 
Javascript :: jquery find 
Javascript :: js then 
Javascript :: display toastr success 
Javascript :: ejs display variable 
Javascript :: get average and sum javascript 
Javascript :: mapgetters with parameter 
Javascript :: char array to string javascript 
Javascript :: user input in js 
Javascript :: length of set javascript 
Javascript :: No provider for ReducerManager 
Javascript :: javascript get call stack 
Javascript :: electron new window 
Javascript :: searching in json array mongodb 
Javascript :: express server sockjs 
Javascript :: jasmine spy return value when using create Spy Object angular 2 
Javascript :: how to get variable in local storage in javascript 
Javascript :: winston logger creating particular log file for each level 
Javascript :: message delete discord.js 
Javascript :: turnery opertaor js 
Javascript :: img src to file javascript 
Javascript :: anchor link issue with fixed header css js 
Javascript :: json minecraft 
Javascript :: substr() javascript 
Javascript :: how to set visibility in javascript of html title 
Javascript :: date difference moment js 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =