Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQuery | :text Selector

  • Last Updated : 22 Feb, 2019

The :text Selector is used to select input element with having a text field i.e (type==text).




<!DOCTYPE html>
    <script src=
    $(document).ready(function() {
        <h1 style="color:green;">
        <h2>jQuery :text Selector
        <form action="">
            <input type="text" 
            <br> Password:
            <input type="password" 
            <input type="reset"
            <input type="submit" 


Supported Browsers: The browser supported by jQuery :text Selector are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!