jQuery map method

jQuery “last()” method passes each element in current matched set using a function which generates new jQuery objects and returns value.

Syntax : jQuery map() method


index : Index of current element.
element : Current element.

jQuery map Method Example

jQuery map() Method – Example

<script type="text/javascript">
              $( "#selectAll" ).on( "click", function(event) {             
              $( "input" ).map(function(){
              $( "#unselectAll" ).on( "click", function(event) {             
              $( "input" ).map(function(){

Try it »


Add Comment

📖 Read More