Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

jquery bind in click function?

Hello Experts,

I am sure the below code is fairly simple.
all i am trying to do is to bind the 1st and the 2nd click events because at the moment the slide (#ausstattungs-container) is showing bouncing  twice.

Please help!

$(document).ready(function() {
	$('table tr').click(function() {
		var firstTd = $('.tdlight:first', $(this));
		if (firstTd.length == 0)
		var text = firstTd.text();
		$('#sliderClick').click(function() {
		$('#ausstattungs-container').show("slide", { direction: "right" }, 1000);

Open in new window

  • 2
  • 2
1 Solution
RefaelAuthor Commented:
This is actually not a bind problem.

this cause the problem

.show("slide", { direction: "right" }, 1000);

Open in new window

When i use

Open in new window

It works fine!

so how can i use "slide to right "?
Greetings Refael,

Docs are your friend!

Make sure you are using UI and importing the last version of jQuery, since the first line should work :)

As a last resource, you can use the css property margin-left: Xpx with animation, or the css property left, in case your div is position: absolute. I still stand by my statement, pretty sure the code works, you just need to import jQuery UI and the latest version of jQuery.

RefaelAuthor Commented:
Hi jjperezaguinaga,

It works but ... as i said above the slider seem double bounce/slide.
Oh, that's weird.

Can you confirm that your html markup is like the following?
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.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now