Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery select live onchange

Tags:

jquery

I'm adding a select box to a form by cloning the current table row, and then doing

currentRow.after(newRow);

Q: Using the .live method, how do I test to see when the new select option has changed?

like image 831
Phillip Senn Avatar asked Mar 30 '10 20:03

Phillip Senn


1 Answers

$('table select').live('change',function(){
    var select = $(this);
    var newVal = select.val();
});
like image 121
PetersenDidIt Avatar answered Oct 13 '22 01:10

PetersenDidIt