2011-11-16 60 views
1

我有一個表格,我需要隱藏某個動作隱藏所有的上傳表格。我怎麼能在jQuery中做到這一點?謝謝!隱藏上傳表格

<h2>Please fill in the file-upload form below</h2> 
<form action="fup.cgi" enctype="multipart/form-data" method="POST"> 
File to upload: 
<input type="file" name="upfile"> 
<br> 
Notes about the file: 
<input type="text" name="note"> 
<br> 
<br> 
<input type="submit" value="Press"> 
to upload the file! 
</form> 
<hr> 

回答

1

類似這樣的詞應該是:

$('input:file').hide(); 
0

裹在<div id="myform">表格,標題標籤,然後使用jQuery你可以使用

$('#myform').hide(); 

$('#myform').show(); 

你可以得到所有您需要的信息和實例看jQuery API: Hide()