jquery - If a div is focused then have the click even on other .class -
i trying have div class on focus there should click event on other class . possible ?
html
<div class="focusdiv"> <div class="clickevent"> </div> </div> css
.focus:focus{ background: #fff; border-color: #fa9a34; -webkit-box-shadow: 0px 0px 6px 0px rgba(250, 154, 52, .5); box-shadow: 0px 0px 6px 0px rgba(250, 154, 52, .8); outline: none; /* remove outline */ } i wanted know if possible how ?
use .mouseenter()
$('div').mouseenter(function(){ $('div.classname').click(); or $('div.classname').trigger('click'); });
Comments
Post a Comment