layui select選擇獲取option文本

在監聽select選擇的方法中:blog

補充一下 給select添加自定義屬性io

一樣在監聽方法中:class

$(data.elem).find("option:selected").attr("屬性名","值");select

相關文章
相關標籤/搜索