How to get the value of the custom attribute of the selected item in Jquery

var addr = $('#address_id').find("option:selected").attr("addr");

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326280775&siteId=291194637