add custom attribute to select option jquery

Convenience: It can be called directly on a jQuery object and chained to other jQuery methods. ), apply this syntax: If you’re already using the JavaScript JQuery library, then you can do something like this: Do not rely on the selected attribute of