jquery file what does it mean
Nov 25, 2020 pm 04:09 PMfile means "file" and is a selector in jquery. You can select input elements with the [type=file] attribute, and the syntax is [$(":file")].
Related recommendations: "jQuery Video Tutorial"
Definition and usage
: The file selector selects input elements with type=file.
Syntax
$(":file")
Example
Select the one with type="file"<input>
Elements:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $(":file").css("background-color","red"); }); </script> </head> <body> <form action=""> 用户名: <input type="text" name="user"><br> 文件: <input type="file" name="myfile"> </form> </body> </html>
For more programming-related knowledge, please visit: Programming Learning! !
The above is the detailed content of jquery file what does it mean. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Replace String Characters in JavaScript

Custom Google Search API Setup Tutorial

8 Stunning jQuery Page Layout Plugins
