Javascript 单击时,“提交”按钮消失
当您填写表格并单击“开始挣钱”按钮时,该按钮将消失!!!它仍然通过并进入下一页,所以很多工作,但我不知道为什么按钮消失。。。。有什么想法吗Javascript 单击时,“提交”按钮消失,javascript,jquery,Javascript,Jquery,当您填写表格并单击“开始挣钱”按钮时,该按钮将消失!!!它仍然通过并进入下一页,所以很多工作,但我不知道为什么按钮消失。。。。有什么想法吗 <?php /*** Form begins here ***/ ?> <form method="post" action="redirect.php" name="home_sub" accept-charset="utf-8" id="home_sub"> <div class="form_
<?php /*** Form begins here ***/ ?>
<form method="post" action="redirect.php" name="home_sub" accept-charset="utf-8" id="home_sub">
<div class="form_fields">
<p><label for="first_name" class="over">First Name:</label>
<input name="first_name" id="first_name" class="text_input required" type="text" value="" onClick="$('#optinsection').show()" /></p>
<p><label for="last_name" class="over">Last Name:</label>
<input name="last_name" id="last_name" class="text_input required" type="text" value="" onClick="$('#optinsection').show()" /></p>
<p><label for="email" class="over">E-mail:</label>
<input name="subscriber_email" id="email" class="text_input xverify_email required" type="text" value="" onClick="$('#optinsection').show()" autocomplete="off" /></p>
<p><label for="custom_Address" class="over">Address:</label>
<input name="custom_Address" type="text" id="custom_Address" value="" class="text_input" autocomplete="off" /></p>
<p><label for="custom_City" class="over">City:</label>
<input name="custom_City" type="text" id="custom_City" value="" class="text_input" autocomplete="off" /></p>
<p><label class="hidden">Select State</label>
<select name="custom_State" id="custom_State" class="select_input">
<option value="">Select State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="WY">Wyoming</option>
</select></p>
<p><label for="custom_ZipCode" class="over">Zip code:</label>
<input name="custom_ZipCode" type="text" id="custom_ZipCode" class="text_input required" value="" maxlength="5" autocomplete="off" /></p>
<p><label class="hidden">Birth Month</label>
<select name="custom_DOBMonth" id="custom_DOBMonth" class="select_input select_month">
<option value="">Birth Month</option>
<option value="01">January</option>
<option value="02">Febuary</option>
</select>
<label class="hidden">Birth Day</label>
<select name="custom_DOBDay" id="custom_DOBDay" class="select_input select_day">
<option value="">Day</option>
<?php for($dy=1; $dy<32; $dy++){
$sdy = $dy < 10? '0'.$dy: $dy;
echo '<option value="'.$sdy.'">'.$dy.'</option>';
} ?>
</select>
<label class="hidden">Birth Year</label>
<select name="custom_DOB_Year" id="custom_DOB_Year" class="select_input select_year">
<option value="">Year</option>
<?php for($yr=2000; $yr>1910; $yr--){
echo '<option value="'.$yr.'">'.$yr.'</option>';
} ?>
</select></p>
<p><label class="hidden">Select Gender</label>
<select name="custom_Gender" id="custom_Gender" class="select_input">
<option value="">Select Gender</option>
<option value="M">Male</option>
<option value="F">Female</option>
</select></p>
<p><label for="custom_Phone" class="over">Phone: (xxx-xxx-xxxx)</label>
<input type="text" name="custom_Phone" id="custom_Phone" class="text_input" value="" /></p>
<span id="optinsection">
<br />
<input type="checkbox" name="chk_allinbox" id="chk_allinbox" class="required" value="1" />
By checking this box, you agree to our Terms of Service and Privacy Policy and agree to receive daily newsletters and promotions via email from BestHotSurveys.com.
<br /><br />
</div>
<div class="form_button">
<input type="submit" class="submit" onclick="javascript: return TMG_CheckForClick(); ShowExitPopup=false;" />
</div>
</form>
<?php /*** Form ends here ***/ ?>
名字:
姓氏:
电邮:
地址:
城市:
选择状态
选择状态
阿拉巴马州
阿拉斯加州
怀俄明州
邮政编码:
出生月份
出生月份
一月
二月
出生日
白天
出生年份
年
选择性别
选择性别
男性
女性
电话:(xxx xxx xxxx)
勾选此框表示您同意我们的服务条款和隐私政策,并同意通过电子邮件从BestHotSurveys.com接收每日新闻稿和促销活动。
单击提交按钮后,从您提供的站点提交按钮包装div表单按钮
通过背景图像样式化
单击按钮之前:
<div class="form_button">
<input type="submit" class="submit" onclick="javascript: return TMG_CheckForClick(); ShowExitPopup=false;">
</div>
<div class="form_button" style="background-image: url(http://www.besthotsurveys.com/images/form_bottom_sending.gif);">
<input type="submit" class="submit" onclick="javascript: return TMG_CheckForClick(); ShowExitPopup=false;" disabled="disabled">
</div>
点击按钮并通过验证后:
<div class="form_button">
<input type="submit" class="submit" onclick="javascript: return TMG_CheckForClick(); ShowExitPopup=false;">
</div>
<div class="form_button" style="background-image: url(http://www.besthotsurveys.com/images/form_bottom_sending.gif);">
<input type="submit" class="submit" onclick="javascript: return TMG_CheckForClick(); ShowExitPopup=false;" disabled="disabled">
</div>
因此,请查看您的TMG\u CheckForClick
以删除该style
或检查该图像的可用性
当前用于它抛出的图像访问
在上找不到请求的URL/images/form_bottom_sending.gif
这台服务器
也许按钮的TMG\u CheckForClick
功能中有什么东西隐藏了它?谁知道呢,你需要调试代码。或者可能有一个正在提交的表单的侦听器,如果所有字段都是有效的,则隐藏该按钮!我只是复制了一个按钮图像,并将其重命名为form_bottom_sending.gif,这样它现在就不会消失。谢谢你的帮助!