I have assigned onchange() function to select so what do i do after that? @RileyCarney well, it depends, instead of changing refactoring code on ui part upon function name change on js part, it is more elegant, and btw i didn't see any click event. Combine the focus event with the change event to achieve what you want: Working example: http://jsfiddle.net/x5PKf/766, please don't use a global var for this - store the prev value at the data Examples HTML How can I check changes in selected options with jQuery? Shraddha is a JavaScript nerd that utilises it for everything from experimenting to assisting individuals and businesses with day-to-day operations and business growth. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Duress at instant speed in response to Counterspell. Does Cast a Spell make you a spellcaster? While using W3Schools, you agree to have read and accepted our, , , , , , , , , , , , , , , , , ,