The Text Selector selects all input fields of type text. It does not select Textarea elements. We can select all text of the web page with Text Selector. The Test selector $( ":text" ) is equivalent to $( "*:text" ). it not part of the CSS specification and it's a jqurry extention.

Syntax  $(":text")


<!doctype html>
	<html lang="en">
	  <meta charset="utf-8">
	  <title>text demo</title>
	  textarea {
	    height: 25px;
	  <script src=""></script>
	 <input type="hidden"> <br><br>
	 Text <input type="text"> <br><br>
	 Radio button <input type="radio"> <br><br>
	 Checkbox <input type="checkbox"> <br><br>
	 File <input type="file">  <br><br>
	 Text <input type="text"> <br><br>
	 <input type="submit"> <br><br>
		var input = $( "form input:text" ).css({
		  background: "yellow",
		  border: "3px red solid"
		$( "div" )
		  .text( "Text found =" + input.length + "." )
		  .css( "color", "red" );
		// Prevent form submission
		$( "form" ).submit(function( event ) {