JQuery Exam Solutions
JQuery Exam Solutions
$(document).ready(function() {
$("p").text("Hello, jQuery!");
});
$(document).ready(function() {
$("#myButton").click(function() {
$("#myText").text("Button Clicked!");
});
});
5. What is traversing?
Traversing means navigating through HTML elements in the DOM.
$(document).ready(function() {
$("span").parent().css("color", "red");
});
$(document).ready(function() {
$("#box").click(function() {
$(this).animate({ left: "250px" });
});
});
$(document).ready(function() {
$("#removeBtn").click(function() {
$("#myPara").remove();
});
});