file
英[fa?l]? ?美[fa?l]??
vt.提出(離婚訴訟或其他訟案);把…歸檔;用銼銼;發(fā)稿,寄給報(bào)社
vi.發(fā)送(報(bào)道給報(bào)社);排成一行行走;提出申請(qǐng)
n.檔案;文件(夾);縱列;銼刀
jquery file選擇器 語法
作用::image 選擇器選取類型為 file 的 <input> 元素。
語法:$(":file")
jquery file選擇器 範(fàn)例
<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>
#點(diǎn)擊 "執(zhí)行實(shí)例" 按鈕查看線上實(shí)例