views:

77

answers:

1
+1  A: 

$("form") would fetch all <form> elements in the page, you need the clicked button parent form: $(this).parent('form'):

var dataString = $(this).parent('form').serialize();
aularon
I've tried that .... I see what you mean.. but now the string is empty... I tried .parent().parent('form')... as well... same results :(
Jacek Dominiak
It's probably due to that you are putting a `<form>` tag surrounding the `<td>`, try inspecting the output (after it's rendered by the browser), probably the browser didn't like that, cuz this is not a valid place for a `<form>` element. my firefox didn't like it, it closes the `<form>` tag right before the next `<td>`: http://jsfiddle.net/yUERz/
aularon