Jquery Facebox Plugin: Focus The Popup Appearance
I have an HTML page with facebox popup. This page contains many links and forms, and the popup contains one form. What I want is, when I open the popup, using only keyboard's butto
Solution 1:
You can listen for the 'reveal.facebox' event which is fired just after the facebox is shown. Once the facebox is shown, just focus the first input field.
$(document).ready(function() {
$('a[rel*=facebox]').facebox();
$(document).bind('reveal.facebox', function() {
$('.popup input:first').focus();
});
})
Post a Comment for "Jquery Facebox Plugin: Focus The Popup Appearance"