Selector #id : To access element with its id.
Now the same can be achieved in jQuery using a few characters like the following:
So the points that are required to be noted are as follows:
A "#" i.e. hash is used when we want to refer any element with its id.
Now let us look at one short example to clear this:
<!--code starts from here-->
$("#firstptag").append("What are you doing today !! ");
<p id="firstptag">Hello how are you !! </p>
<p> Howz life going on....!! </p>
<!--code ends here-->
Now when you will execute the above code, you will get the following output:
Hello how are you !! What are you doing today !!
Howz life going on....!!