jquery-selectBox icon indicating copy to clipboard operation
jquery-selectBox copied to clipboard

get value of a custom attribute value

Open raxan opened this issue 10 years ago • 0 comments

Hi

I have a custom attribute like below:

                        <select>
                            <option data-customattribute="custom attribute" value="599wa">value</option>
                        </select>

how to get value of data-customatribute?

with below snippet not work:

$('select').change(function () {
$(this).children("option").data("customattribute");
}

raxan avatar Apr 16 '15 07:04 raxan