JQuery(學習筆記三)JQuery HTML操作

一、jQuery DOM 操作 (1)獲得內容 //獲得text $("#btn1").click(function(){ alert("Text: " + $("#test").text()); }); //獲得html $("#btn2").click(function(){  alert("HTML: " + $("#test").html()); }); //獲得val $("#btn3"
相關文章
相關標籤/搜索