jquery file selector


  Translation results:

file

UK[faɪl] US[faɪl]

vt. To file (divorce proceedings or other lawsuits); to file...; to file; to file; Release, send to the newspaper

vi. Send (report to the newspaper); walk in a line; make an application

n. File; file (folder); column; file

jquery file selectorsyntax

Function::The image selector selects <input> elements of type file.

Syntax: $(":file")

jquery file selectorexample

<html>
<head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript"> 
 
$(document).ready(function(){
    $(":file").css("background-color","#B2E0FF");
});
 
</script>	
 
</head>
<body>
<html>
<body>
 
<form action="">
Name: <input type="text" name="user" />
<br />
Password: <input type="password" name="password" />
<br />
File: <input type="file">
</form>
 
</body>
</html>
 
 
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A