moving to the right in a table with query

$(document).ready(function() {
	
	//funciones de edicion
	
	$(".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="submit" value="Cambiar"></form>');

			$(this).unbind("click");		

		$(this).eq(2).html() = "test";
			
	});

Open in new window


This correspond to a table that have a td that have a class named "cambiarClientes", i need the line that have eq(2) to work, that is two columns to the left, any idea?
LVL 1
joyacv2Asked:
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.

GaryCommented:
.index() is zero based so the second element would be .index(1)
0
GaryCommented:
Do you mean the second column from the right?
0
joyacv2Author Commented:
the second to the right, imagine three columns the first is the one that contains the class
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

GaryCommented:
Post your table HTML and indicate what you want to get
0
joyacv2Author Commented:
<table><tr><td class="cambiarClientes>1232</td><td>worked</td><td>pending</td></tr></table>

I want that when 1232 is click then pending change to test, move two to the right, but eq is not working
0
GaryCommented:
$(".cambiarClientes").click(function () {
    $(this).next().next().text("test")
})

Open in new window

0

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
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.