Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

bootstrap modal clear all fields

$('#modal1').on('hidden.bs.modal', function (e) {
  $(this)
    .find("input,textarea,select")
       .val('')
       .end()
    .find("input[type=checkbox], input[type=radio]")
       .prop("checked", "")
       .end();
})
Comment

PREVIOUS NEXT
Code Example
Javascript :: closest javascript 
Javascript :: javascript on keypu 
Javascript :: Select All Elements With A Class getElementsByClassName 
Javascript :: automatically scroll to bottom of page javascript 
Javascript :: momentjs range 
Javascript :: async for loop 
Javascript :: js conditional key 
Javascript :: download json file from s3 
Javascript :: snentence case capitalisation js 
Javascript :: delete a property of html by js 
Javascript :: javascript random numbers 
Javascript :: js for each item in array 
Javascript :: get value of key in object mongodb 
Javascript :: get value of choice dropdown in js 
Javascript :: settimeout javascript see how much time is left 
Javascript :: javascript element distance from top 
Javascript :: swal change confirm button class 
Javascript :: jquery remove multiple classes 
Javascript :: javascript detect page 
Javascript :: jquery ajax on fail 
Javascript :: session undefined nextauth 
Javascript :: javascript find all matches in array 
Javascript :: js get max value in an array 
Javascript :: js order string 
Javascript :: styled components import google font 
Javascript :: for open new tab we are using window.open but new tab are open in left side how to change the right side 
Javascript :: javascript download xlsx file 
Javascript :: moment js check if date is greater than 
Javascript :: promise states javascript 
Javascript :: javascript simulate click on element 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =