Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • What happens if $('element') selects multiple elements? should it target only the first found? Commented Apr 15, 2013 at 14:36
  • The answer to your second question is that without apostrophes, left and right are treated as variables, and their values are used as the parameters. If you haven't assigned them, the values are undefined. Commented Apr 15, 2013 at 14:42
  • I would use it to elements which can't be multiple (I mean call them by ID). Commented Apr 15, 2013 at 14:45
  • How could I assign them in this case? Commented Apr 15, 2013 at 15:07