if this is happening in an ajax request, you can use AjaxRequestTarget.focusComponent(foo);
-- Jeremy Thomerson http://www.wickettraining.com On Tue, May 4, 2010 at 11:24 AM, fachhoch <[email protected]> wrote: > > I got a new problem with this. The browser loses focus. > > Please suggest what I can do to retain focus at selected element. here > again my jquery > > > > $(document).ready(function(){ > > $("a.showHidePrograms").live('click', function(){ > var > $div= $(this).parent().next("div"); > > if($div.attr("class") == 'hide'){ > > $div.attr("class","show"); > }else{ > > $div.attr("class","hide"); > } > > $(this).focus(); > }); > }); > > > > I tried adding .focus() method but did not work. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/jqery-not-getting-called-after-ajax-refresh-tp1872270p2125879.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
