---
title: "How can you select all elements in a page using jQuery?"  
description: "How can you select all elements in a page using jQuery?"  
author: "Anonymous User"  
published: 2012-08-01  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/1502/how-can-you-select-all-elements-in-a-page-using-jquery  
category: "jquery"  
tags: ["jquery", "javascript", "element", "select element", "mindstick", "interview question"]  
reading_time: 1 minute  

---

# How can you select all elements in a page using jQuery?

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"); \
\
</script>

## Answers

### Answer by Anonymous User

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"); \
\
</script>


---

Original Source: https://www.mindstick.com/interview/1502/how-can-you-select-all-elements-in-a-page-using-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
