file selector in jQuery with example

file selector returns all input elements with type file.

Example :

    <title>file Selector</title>
    <script type="text/javascript" src=""> </script>
    <script type="text/javascript">
    <input type="file">
    <button type="button" id="myButton">Click Me</button>
    <button onclick="location.reload()">Reset</button>

Demo :

        In the above example, we have used file selector. File selector returns all input elements with type file. In above example, it selects the file element and applies CSS to it.


Post a Comment