Phillip Senn
Phillip Senn

Reputation: 47605

jquery select live onchange

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?

Upvotes: 8

Views: 30390

Answers (1)

PetersenDidIt
PetersenDidIt

Reputation: 25620

$('table select').live('change',function(){
    var select = $(this);
    var newVal = select.val();
});

Upvotes: 13

Related Questions