http://docs.jquery.com/Selectors

look at the last item in "Basics" , "Selector1,Selector2...." and click on it to see the example

getting familiar with the jquery website categories of "selectors, traversing, manipulation etc " is probably the #1 best tool for learning  jquery.

Alexandru Adrian Dinulescu wrote:
Hello.

I am trying to do something like this
$(element1 || element2).click(function(){})

unfortunately this does not work, both element1 and element2 work independently but not together and i have no clue how to get them to work together.

Basically what i need that either when element1 is clicked, OR element2 is clicked, do identical thing.

I know this is a very simple issue, but i havent learned _javascript_ at all, i've started with jQuery.

Thank you

Reply via email to