我有一些正常的div我的第一頁上:如何在第一頁,從另一個頁面隱藏div?
<div id="news">
<div class="loginform">
<div id="form_news">
<form id="loginform" method="post" action="envianews.asp">
<div id="news_campos">
<input type="text" id="nome" name="nome" value="" title="Nome" placeholder="NOME" autocomplete="off" required />
<input type="text" id="email" name="email" value="" title="Email" placeholder="EMAIL" autocomplete="off" required/>
</div>
<input type="submit" class="bt_news" name="submit" id="submit" value=""/>
<div id="news_response"></div>
</form>
</div>
</div>
</div>
和我envianews.asp
我有腳本來發送這些信息去數據庫。我想知道我需要做什麼,因爲當人點擊按鈕發送數據時,隱藏我的div news
...
但提交到'envianews.asp'將刷新整個頁面,那麼,爲什麼你只想隱藏 '#news' DIV? –
是的..我只想隱藏這些'#news' div在我的'index.html'頁面..例如.. – Preston
所以你不希望整個頁面刷新,是嗎? –