After looking in the documentation, this doesn't look possible but
maybe someone can help me. Is it possible to auto increment the value
on a variable that will be appended? For example the bottom code I'm
appending an extra row with a text field to the table once the fields
button is clicked. I want the data for every "c#" sign to count up
from 1, 2, 3, etc... Any ideas appreciated, thanks.

Further Note: If the auto increment is possible, could I do it as 001,
002, 003... Thanks.


--- Code  ---

$(document).ready(function(){
        $("#fieldsbut").click(function() {
                var extrafield = "<tr><td>List Item c#</td><td><input 
type='text'
name='c#' id='c#' title='' size='30' maxlength='255' value='<?php echo
$listcreate->c#->EditValue ?>'></td></tr>";
        $("#fields").append(extrafield);
        });
});

--- Code  ---

Reply via email to