0

I'm having an issue where the form generated with ruby isn't included inside my #content div, is this because the form is generated after the html is read by the browser (sorry if I sound like a moron on this)

-- edit update - view source --

The code below generates with the email box and submit button outside of the content box

<div id="content">
<!-- text here -->
<form accept-charset="UTF-8" action="/password_resets" method="post">
<div style="margin:0;padding:0;display:inline">
<input name="utf8" type="hidden" value="&#x2713;" />
<input name="authenticity_token" type="hidden" value="afmtpSAc93w1uMcnouhY9XmbVTM7fE1VNFvZKnp0kMs=" />
</div>
    <div class="field"> 
        <input id="email" name="email" placeholder="email@website.com" type="text" />
    </div>
    <div class="actions">
        <input name="commit" type="submit" value="Reset Password" />
</form> </div>
</div>
4

2 回答 2

0

访问此链接后想通了 在FORM中使用DIV是否正确?

一旦我删除了 div 的字段和操作,它就会清除所有内容

于 2012-07-02T20:01:27.293 回答
0

我不确定我的问题是否正确,但在上面的 html 中,最后一个</form> </div>应该是 </div> </form>

于 2012-07-02T17:33:44.140 回答