Home > DeveloperSection > Interviews > How can you select all elements in a page using jQuery?

Posted on    August-01-2012 3:20 AM

 1 Answer(s)
  2450  View(s)
Rate this:

Arun Singh

Total Post:310

Posted on    August-01-2012 12:00 AM

To select all elements in a page, we can use all selectors, for that we need to use *(asterisk symbol).
<script language="javascript" type="text/javascript">

         $("*").css("border", "2px dotted red");


Don't want to miss updates? Please click the below button!

Follow MindStick