Home > Web Front-end > JS Tutorial > jquery file what does it mean

jquery file what does it mean

coldplay.xixi
Release: 2020-11-30 14:20:41
Original
2410 people have browsed it

file means "file" and is a selector in jquery. You can select input elements with the [type=file] attribute, and the syntax is [$(":file")].

jquery file what does it mean

Related recommendations: "jQuery Video Tutorial"

Definition and usage

: The file selector selects input elements with type=file.

Syntax

$(":file")
Copy after login

Example

Select the one with type="file"<input> Elements:




 

<script>
$(document).ready(function(){
  $(&quot;:file&quot;).css("background-color","red");
});
</script>



用户名:
文件:
Copy after login

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!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
js file code not found
From 1970-01-01 08:00:00
0
0
0
javascript - under ie8 jquery input file 无值
From 1970-01-01 08:00:00
0
0
0
jquery - js file is loaded multiple times
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template