I have written a script which select and deselect all options of multiple select tag on my html page. But in Google Chrome when I do deselect it still is viewed as selected, only when we put focus on select box, selection will disappear.
Is there any workaround to fix it?
Use
.prop()[docs] instead to directly set the property of the DOM element:DEMO