Guys, how can i add the number of the field using jQuery?
Something like this:....script....
<script type="text/javascript">
$(document).ready(function() {
$('#add').click(function() {
var i=1;
var input = '<tr><td>
FIELD' +i+' </td></tr>'
i++;
$('#test').append(input);
});
end script...
.....html
...
<div id="test"></div>
....
.....end html
I want the output like this:
FIELD 2
FIELD 3
FIELD 4
Thanks in advance.