php - Reload the page if i click on outside the multiple dropdown box using javascript -
i have small query, have multiple dropdown box in form. after selecting multiple value, if click on outside multiple drop down box page should reload. how can make happen using javascript. have used "onmouseout(reload.form)"
option not working. please me on this.
thanks ranjith
in scenario, might need click event rather mouseout(which not on click when mouse loses focus).
for more details click outside element refer below link
javascript detect click event outside of div
so once capture click out event, can trigger page load using
window.location.reload(true) or window.location.reload(false)
true or false depends on need load cache or server.
hope helps!!
Comments
Post a Comment