To make a div focusable, it needs to have a tabindex
attribute.
<div id='test' tabindex='1'></div>
Then, you can focus with e.g.
$('#something').click(function() {
$('#test').focus();
});
More Related Contents:
- Why is my jQuery :not() selector not working in CSS?
- Can I open a dropdownlist using jQuery
- Getting jQuery to recognise .change() in IE
- Get element -moz-transform:rotate value in jQuery
- Add comma to numbers every three digits
- Play/pause HTML 5 video using JQuery
- What is the easiest way to order a / in jQuery?
- jQuery CSS – Write into the -tag
- ASP.net MVC 3 jQuery Validation; Disable Unobtrusive OnKeyUp?
- What are deferred objects?
- How to strip HTML tags with jQuery?
- Show Div when scroll position
- Django JQuery Ajax File Upload
- JQuery sortable lists and fixed/locked items
- Opening tab with anchor link
- jQuery to serialize only elements within a div
- jQuery – get AJAX response headers
- Changing the action of a form with JavaScript/jQuery
- What do dot and hash symbols mean in JQuery?
- JQuery: detect change in input field [duplicate]
- How to programmatically trigger the click on a link using jQuery?
- Leave menu bar fixed on top when scrolled [closed]
- Is there any drawback to set ClientIDMode = Static on every object ( set on maincontent of master page)
- Manually set unobtrusive validation error on a textbox
- How to submit form without refreshing page using Django, Ajax, jQuery?
- JSON stringify missing from jQuery 1.4.1?
- jQuery countdown timer
- Wrap some specified words with span in jQuery?
- Twitter Bootstrap Carousel cycle items right to left ( RTL ) reversed
- Removing multiple classes (jQuery)