<select id="selTest"> <option custom="123" value="abc">111</option> <option custom="456" value="def">222</option> <select>
... using jQuery, how do I get option.custom where option.value = selTest.val ()
In other words: if selTest.val = def, then $ x = 456 (I'm trying to get the custom value in $ x)
source share