【发布时间】:2012-11-14 10:18:00
【问题描述】:
简单的问题。 我叫表单ajax。
<body>
<div id="head"><a class="button">CLICK</a></head> - maybe head place
<div id="content"><a class="button">CLICK</a></head> - in content, other place
<form style="opacity:0;" metod="POST">
<input type="text" name="phone">
<input type="{% if id="content" %}text{% else %}hidden{% endif %}" name="phone">
</form>
</body>
我的问题:{% if id="content" %} - 如何实现
【问题讨论】:
-
你的 Form 或 ModelForm 的实例叫什么?你冷就用Javascript来做这个
标签: jquery ajax class django-forms