Skip to content
Advertisement

how to remove attribute selected from all selected options in select in jquery

I’m not remove attribute selected from all selected options in jquery.

Please help me.

My html code is :

JavaScript

and all the top ways not working.

selected options length return only 1. i’m not to do select all selected options to remove attribute selected.

tank’s all.

Advertisement

Answer

Just use removeAttr() for all options:

JavaScript
JavaScript
Advertisement