jQuery Select classes start with - Javascript jQuery Selector

Javascript examples for jQuery Selector:class

Description

jQuery Select classes start with

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <script src="https://code.jquery.com/jquery-2.1.0.min.js"></script> 
 </head> //from www .  j  av  a 2  s  .com
 <body> 
  <script>
$(document).on('change', 'input[class^="item_number_"]', function(){
    console.log(this);
});
$('body').append('<input class="item_number_1" value="Woot">')

      </script>  
 </body>
</html>

Related Tutorials