not update get statement using jquery


I have the following code

		$(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()+'">');	

Open in new window

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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rendered table html and required values again.
joyacv2Author Commented:

Can you explain a little bit?
Post your html and indicate the data you want like in the last question.
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

joyacv2Author Commented:
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
Can you post the HTML, something is not making sense to me.
joyacv2Author Commented:

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
joyacv2Author Commented:

but not update, my solution is to put all inside the form, but i prefer individually by cell
You cannot have a FORM around a group of TD cells or even around the TR tag.

Look at this

It creates an hidden input for the last two columns and changes in those text boxes are made in the hidden input as they happen

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.