 <p>You seem to want the triggering event to be a <code>focusin</code>. Maybe your page navigation calls for this, instead of a simple click. In order to make the <code>div.CinP</code> itself focusable you should add to it a <code>tabindex</code> attribute.</p> <p>How about </p> <pre><code>$(".CinP").focusin(function() { $(this).css("background-color", "#fefefe"); $('.Cj4Jbc').focus(); }); </code></pre>