Skip to content
Related Articles

Related Articles

jQuery | :file Selector

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 22 Feb, 2019

The :file Selector is used to selects the input element having file field.(type==file)



Example: Input element with type = file.

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


Supported Browsers: The browser supported by jQuery :file 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!