How to use jQuery to focus on a specific div tag?
Let's say I got some DIV tags in an HTML page, for example:
<DIV ID="all">
<DIV ID="div1">
<Input type="radio" name="data['site1']['user']" VALUE="1">user1<br/>
</DIV>
<DIV ID="div2">
<Input type="radio" name="data['site1']['user']" VALUE="2">user2<br/>
</DIV>
<DIV ID="div3">
<Input type="radio" name="data['site1']['user']" VALUE="3">user3<br/>
</DIV>
<DIV ID="div4">
<Input type="radio" name="data['site1']['user']" VALUE="4">user4<br/>
</DIV>
</DIV>
Is it possible to make the same effect in jQuery as follows:
Document.getElementByID('div2').focus();
+3