Write code for h1 selector to display text as welcome to jquery


code:-

html code:-

<h1 id="first"></h1>

script:-

$(document).ready(function()
{
$("#first").html("welcome");
})



output:-

welcome

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post