小编And*_*est的帖子

对象#<HTMLFormElement>的属性"submit"不是函数

任何人都可以向我解释这个错误意味着什么?对此有任何帮助,我将非常感激.

<form class="form" id="form" action="/mailer.php" method="post">
Run Code Online (Sandbox Code Playgroud)

我正在使用的Jquery代码就是这个.

$('#form').submit();  
Run Code Online (Sandbox Code Playgroud)

html javascript forms jquery submit

50
推荐指数
3
解决办法
3万
查看次数

表格目标是iframes PARENT

我有一个在iframe内部的表单,我需要确保表单提交到iframe的父级.目标="_顶部"和目标="_父母"不起作用,我开始对自己有点加重.

如果有人能指出我正确的方向,那就太棒了.:)

我有一个普通的iframe与src到一个html页面 - 那个html页面有这个......

<form action="#" method="post" target="_parent" >
  <table id="Table_01" width="308" height="411" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td colspan="6">
            <img src="index_01.png" width="308" height="163" alt=""></td>
    </tr>
    <tr>
        <td colspan="2" rowspan="4">
            <img src="index_02.png" width="112" height="142" alt=""></td>
        <td colspan="3" style="background-image: url('optin_name.png');" width="189" height="40" alt="">
         <input type="text" name="name" style="background: transparent;border:0px;font-size:25px;width:185px;height:37px">
        </td>
        <td rowspan="6">
            <img src="index_04.png" width="7" height="247" alt=""></td>
    </tr>
    <tr>
        <td colspan="3">
            <img src="index_05.png" width="189" height="33" alt=""></td>
    </tr>
    <tr>
        <td colspan="2" style="background-image: url('optin_email.png');" width="188" height="40" alt="">
            <input type="text" name="email" style="background: transparent;font-size:25px;border:0px;width:185px;height:37px;">
        </td>
        <td …
Run Code Online (Sandbox Code Playgroud)

html forms webforms parent

7
推荐指数
1
解决办法
1万
查看次数

jquery css将输入大纲更改为none

好.我知道你们中的一些人正在读这个并且已经在问我为什么这么愚蠢,为什么我不用简单的CSS做这个.

input:focus { outline:none; }
Run Code Online (Sandbox Code Playgroud)

简单...由于某种原因,wordpress不允许这种改变发生 - 所以我回到jquery来做脏工作.

问题对我来说......我无法让它工作......

http://jsfiddle.net/h5KEm/是jsfiddle上以下代码的链接:

<form action="" method="post">
<input id="optin" name="optin"><br />
<input type="submit" id="submit" name="submit" value="go">
</form>?

$('input[name=optin]').click(function() {
    $(this).css('outline', none');    
});?
Run Code Online (Sandbox Code Playgroud)

html forms jquery input jquery-selectors

2
推荐指数
1
解决办法
2894
查看次数

标签 统计

forms ×3

html ×3

jquery ×2

input ×1

javascript ×1

jquery-selectors ×1

parent ×1

submit ×1

webforms ×1