Which of the following is the correct way to create a div element with a link text “Hello” with jQuery?

 Posted by Vivek.Ramapuram on 7/3/2015 | Category: jQuery Interview questions | Views: 1700 | Points: 40
Select from following answers:
  1. $(“#idName”).create(“div”).text(“Hello“);
  2. $(“#idName”).create(“div”).html(“Hello“);
  3. $(“idName”).css(“div”).html(“Hello“);
  4. $(“#idName”).append(“Hello“);
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response