0

How do I find on my page using javascript or jquery?

flag

1 Answer

0

If you have html like this:

<div id="parent-div">
    <div id="find-me"></div>
</div>

You can find it like this and for kicks, let's add a red border to it:

$("#parent-div").find("#find-me").css("border", "1px solid red");

More info on jquery find: http://docs.jquery.com/Traversing/find

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.