謝晒的PHP網頁設計
聯絡E-mail:
sean0704@gmail.com
站內搜尋
Friday, June 6, 2014
[jQuery] 下拉選單 select 如何用 $(this) 去抓到選擇的 option 的 title 值?
$("select").on("change", function() {
alert($("option:selected", this).attr("title"));
}
No comments:
Post a Comment
Newer Post
Older Post
Home
View mobile version
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment