English 中文(简体)
如果在清单中输入田
原标题:Jquery Mobile forms don t submit if input fields are inside a list view

我有一份基本标识,载于我的焦克里移动应用,而且由于我喜欢清单,特别是数据输入=真实情况,我决定把我的田地放在一个<代码><li>标签。 然而,如果我这样做的话,我就不会提交。 如果我删除清单代码(<ul><li> tags”),则该编码有效。

我的法典中载有清单:

<form action="index.php" name="frmLogin" method="post">
        <ul data-role="listview" data-inset="true">
            <li data-role="list-divider" role="heading" tabindex="0">Member login</li>
            <li><input type="text" name="login-email" id="login-email" value="Email" /></li>
            <li><input type="password" name="login-password" id="login-password" value="Password" /></li>
            <li><button type="submit" name="login-submit" id="login-submit" data-icon="arrow-r" data-iconpos="right">LOG ON</button></li>
        </ul>
    </form>

因此,情况是,该表与上述法典完全没有反应。 它甚至没有显示通常在你提交表格时出现的标准的“租赁”超支。

Any ideas?

感谢一只面包车!

问题回答

我从未使用过j Query Mobile,但你可以在<代码>#login-submit上点击并提交时打上这种形式(粉碎ul;li)。

http://www.em>need? 可以通过在<代码><div data-role=“fieldcontain”>中总结你的投入,使你获得类似的布局。

Take a look at the layout and markup here, for example

I ve 使用了data-ajax=“false”

(在座标上增加Jquery-Mobile,以便做出更多反应:)





相关问题
How can I make mobile version of an existing web site?

We have a website coded with jsp-Java. Now, we want to show our website more user friendly on blackberry etc. Is there any tool or method to do this issue more easier? thanks for your answers.

Should I make my mobile application for Mobile 6 or Mobile 5?

I am going to be making a small application very soon. I am wondering would it be better to go and make it for 6.0 or should I make it for 5.0? I don t know much about both versions but I guessing ...

How do I combine @font-face and @media declarations?

I d like to build a common typography stylesheet with a very small number of selectors. As such, I d far prefer to use @media sections for the various versions rather than create different files, each ...

热门标签