Tutorial :triggering onchange event



Question:

I'm not able to get the below code to work.

$("#grid_table td:nth-child(10) input").live("onchange",function () {      alert("changed");  });  

am I missing something here? Thanks.

Ravi


Solution:1

Try changing onchange to change..

$("#grid_table td:nth-child(10) input").live("change",function () {      alert("changed");  });  

If that doesn't work I would verify your selector is working correctly.


Solution:2

Have you tried this:

$("#grid_table td:nth-child(10) input").change(function () {    alert("changed");  });  

to make sure your selector is working properly?


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »