problems taking input hidden from php to javascript submit !

problems taking input hidden from php to javascript submit !

kekitokekito Posts: 15Questions: 0Answers: 0
edited March 2010 in General
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?

Replies

  • kekitokekito Posts: 15Questions: 0Answers: 0
    if somebody know another way.. i was trying too, that if i click in the image, take the event from jquery, and then select this row, which contains the info i need, but i can't select

    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.
  • kekitokekito Posts: 15Questions: 0Answers: 0
    i did it, selecting the parentnode... til row, and then with getNotes.. of table and then get data of row[0]..
    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
This discussion has been closed.