Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to find for lable in jquery

$('input').on("focus", function() {
   var labelText = $('label[for='+  this.id  +']').text();
   console.log( labelText );  
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #lable #jquery
ADD COMMENT
Topic
Name
2+2 =