How to getElementByID in a specific DIV block (JS or JQUery)

MBluxury

New Member
I just wanted a fast/easy/simple way to check for existing ID on a specific element (div in this case)..Can't seem to find code sample for this..im using jquery but i dont think i need to do jquery on this one, just basic getElement.. but i need to isolate the search inside a div block.. because the id does exist in other elements on the page but i need to know if it exist in a specific area/div.so instead of just\[code\]document.getElementById(target_id);\[/code\]i need something like:\[code\]divName.getElementById(target_id);\[/code\]or\[code\]$("document.divName").getElementById(target_id);\[/code\]or\[code\]$(".divName").document.getElementById(target_id);\[/code\]Can't seem to find something that works.
 
Back
Top