click out div element with jquery

Click out div element jquery

Event click out div element with jquery. window.addEventListener(‘mousedown’, function(event){ var advSearchBox = $(‘#advance-search-block’); var target = $(event.target); if( !target.parents(‘div#advance-search-block’).length && !advSearchBox.is(target) ) { advSearchBox.css(‘display’, ‘none’); $(‘#search-wrapper .show-advance-search span’).addClass(‘glyphicons-chevron-down’); } Click out div element with jquery I used, this is amazing…

select option css

Select option css

Select option css > option css arrow Not need loading image arrow, web page loading performance;   Embed html with code: <div class=”plain-select”> <select> <option value=””>Code</option> <option value=”a”>A</option> <option value=”b”>B</option> </select> </div> and css style: select option css <style> .plain-select{float: left;text-align: center;position:…