jQuery selector problem
jQuery selector problem
Hi,
I have a problem selecting an image element by its id. I have a number of image elements inside a div. I can easily select all the image elements in the div using the id of the div and the img element tag name:
- jQuery("#divID img");
this returns all the img elements in the div.
The img elements have their own id. The id's follow a certain convention. The problem I have is selecting an individual img element.
Example:
- jQuery("#1/1-3");
this does not select the element. Is there a reason why? am I missing something?
Thanks in advance