jquery - live() not working with change function -


hi friend following code

script

$(document).ready(function(e) {     $('.text').live('change',function(){         var = $(this).val();         alert(a);         }) }); 

html

<input name="" type="text" class="text"/> 

i new on jquery want fetch input's value on change value dynamicly change again , again

please me guys

as of jquery 1.7, .live() method deprecated.

you should use on()

$(document).ready(function(e) {     $('.text').on('change',function(){         var = $(this).val();         alert(a);         }); });