I am using jquery accordion effect when the clicks on a particular div the content of div appears ,i need the focus on a text-box inside the div?
+1
A:
You'll need to make use of the jQuery focus method:
$(div).click(function(){
$(this).children("#win").focus();
});
Or if it's the only textbox with that ID (which it should be if you're using an ID), just call:
$("#win").focus();
GenericTypeTea
2010-07-01 10:28:29
+1
A:
If you have the id of the text box, you could do the following:
$("#yourtextbox").focus();
xil3
2010-07-01 10:28:31
+1
A:
You can use Jquery function focus(), somthing like this: (for first input field in a div without id)
<div id="myDiv" onclick="$('input', this).focus();">
<input type="text" name="some_name" value="">
</div>
Meduza
2010-07-01 10:49:37