Hi,
thanks for both answers, seems obvious, it is fine now... :/
One more question on the same subject... On first click I chnage the button class and name, on second I post to external script and change button back to first value. On second post the php script is executed ut without any data passed...
/* change client IPv4 address */
$('input.submit').live('click', function() {
/* get current ip value */
var ipv4 = $('td.user_ipv4').html();
/* change submit button value and class */
$('td.changeipv4').html('<input type="button" class="submit_ipv4" value="Spremeni">');
/* user input */
$('td.user_ipv4').html('<input type="text" size="15" maxlength="15" value="' + ipv4 + '">');
/* change IP! */
$('input.submit_ipv4').live('click', function() {
/* get submitted IP address value */
var ipv4 = $('td.user_ipv4 input').val();
$.post('change_ipv4.php', { ipv4: ipv4 } , function(data) {
$('td.changeipv4_result').html(data);
});
/* back to old change button */
$('td.changeipv4').html('<input type="button" class="submit" value="Uredi">');
/* print IP address */
$('td.user_ipv4').html(ipv4);
});
});