1. Home
  2. Docs
  3. JQUERY
  4. init初始化
  5. 取得Attributes 屬性資料

取得Attributes 屬性資料


    $("#btn1").click(function(){
    alert("Text: " + $("#test").text());
    alert("HTML: " + $("#test").html());
    alert($("#test").attr("href"));
    });