joyacv2
asked on
not update get statement using jquery
HI,
I have the following code
I need to send the updated parameter in the td:eq5 and the td:eq3 to the cambioWebPortal.php, but sends the initial acquired value, any idea?
I have the following code
$(".cambiarClientes").click(function(){
$(this).html('<form action="cambioWebPortal.php" method="GET"><input type="text" id="infoClientes" name="infoClientes" value="'+$(this).html()+'"><input type="hidden" name="eventoPertenece" value="'+ $(this).attr("eventoPertenece") +'"><input type="hidden" name="infoFeeder" value="'+ $(this).closest("tr").find("td:eq(5)").html() +'"><input type="hidden" name="infoTipo" value="'+ $(this).closest("tr").find("td:eq(3)").html() +'"><input type="submit" value="Cambiar"></form>');
$(this).closest("tr").find("td:eq(5)").html('<input type="text" value="'+$(this).closest("tr").find("td:eq(5)").html()+'">');
$(this).closest("tr").find("td:eq(3)").html('<input type="text" value="'+$(this).closest("tr").find("td:eq(3)").html()+'">');
$(this).unbind("click");
});
I need to send the updated parameter in the td:eq5 and the td:eq3 to the cambioWebPortal.php, but sends the initial acquired value, any idea?
Rendered table html and required values again.
ASKER
Hi,
Can you explain a little bit?
Can you explain a little bit?
Post your html and indicate the data you want like in the last question.
ASKER
the table is created by a php file,
In the code that i post, when you click a cell, then this grabs the info of two other cells and put in a hidden input, before i click the submit button i change the value of the input of the other cells, but it doesn't refresh the values of the hidden input in the form
In the code that i post, when you click a cell, then this grabs the info of two other cells and put in a hidden input, before i click the submit button i change the value of the input of the other cells, but it doesn't refresh the values of the hidden input in the form
Can you post the HTML, something is not making sense to me.
ASKER
hi,
the problem is that the html is integrated with two many pages to create the table,
i will try to explain a little bit more
1. I have a table with some columns, suppose 5 columns
2. Click the first cell of the first row and then it's convert to a form that have an input box with a button
3. inside this form this grab the html of the next two cells of this first row and put in hidden input
4. Convert the text of the next two cells into input box with his actual value
5. If i pressed the submit button of the first cell, only the value that sends with any change is the value of the first cell, the other two cells goto the the get statement with this initial value, if i change the value of this two cells before pressed the submit button, the value that sends is the initial,
sorry for the problem with the html table code, thanks
the problem is that the html is integrated with two many pages to create the table,
i will try to explain a little bit more
1. I have a table with some columns, suppose 5 columns
2. Click the first cell of the first row and then it's convert to a form that have an input box with a button
3. inside this form this grab the html of the next two cells of this first row and put in hidden input
4. Convert the text of the next two cells into input box with his actual value
5. If i pressed the submit button of the first cell, only the value that sends with any change is the value of the first cell, the other two cells goto the the get statement with this initial value, if i change the value of this two cells before pressed the submit button, the value that sends is the initial,
sorry for the problem with the html table code, thanks
ASKER
yes,
but not update, my solution is to put all inside the form, but i prefer individually by cell
but not update, my solution is to put all inside the form, but i prefer individually by cell
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.