problems taking input hidden from php to javascript submit !
problems taking input hidden from php to javascript submit !
hiiii i'm using a table, with a form in last column, which is trying to send and input hidden, with some info i need.
Problem is, that when i take the event from javascript, and form is submited, the value of hidden inputs is diferent from the real values.... php is this:
$sOutput .= '" '
. ''
. ' '
. '",';
in the jquery code i've doing this:
$('#save').live('submit', function() {
ref = $("#ref").val();
alert(ref);
return false;
} );
when this class of form is submited, i take de value of input hidden with his own value, but the value is always the same, 1. I don't know why!!!! but, is strange, because if a put in php the same command with addsla... inside the form the value is correct!!!! i'm really going crazy...
could somebody says to me why is always the same value?
Problem is, that when i take the event from javascript, and form is submited, the value of hidden inputs is diferent from the real values.... php is this:
$sOutput .= '" '
. ''
. ' '
. '",';
in the jquery code i've doing this:
$('#save').live('submit', function() {
ref = $("#ref").val();
alert(ref);
return false;
} );
when this class of form is submited, i take de value of input hidden with his own value, but the value is always the same, 1. I don't know why!!!! but, is strange, because if a put in php the same command with addsla... inside the form the value is correct!!!! i'm really going crazy...
could somebody says to me why is always the same value?
This discussion has been closed.
Replies
i did this..
$('#product-tables tbody tr td img').live('click', function() {
// select the row that contains this image clicked, then select the info.. but i don't know how can i do this... :S
} );
for me the best option is snd by form in a input hidden, please, if somebody have this problem sending an input hidden please tell me.
SOLVED!
but it's more interesant with the individual form, because you shouldn't take all entire table... every time you push the button :S if somebody knows how to do with THE FORM, please answer me !
if somebody needs a solution i found, ask me ^^
thxs