Answers for "how to find for lable in jquery"

0

how to find for lable in jquery

$('input').on("focus", function() {
   var labelText = $('label[for='+  this.id  +']').text();
   console.log( labelText );  
});
Posted by: Guest on November-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language