"); $d.addClass("current_hand").appendTo("#my_hand"); } I know that $("div"."/> "); $d.addClass("current_hand").appendTo("#my_hand"); } I know that $("div"."/> "); $d.addClass("current_hand").appendTo("#my_hand"); } I know that $("div""/>
خرید بک لینک

Vote count: 0

I have a code in a book which reads:

function hit()
{
    var $d = $("<div>");
    $d.addClass("current_hand")
      .appendTo("#my_hand");
}

I know that $("div") will select all the div elements. However what does $("<div>") do? Does it create a new div element? If so, is this the standard way of creating new DOM elements in jQuery, or are there other ways?

asked 48 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 16 مرداد 1395 ساعت: 17:53

صفحه بندی