<div id="befor-box">
<form id="newsletter-form" name="newsletter-form" action="/sub/" method="post">{% csrf_token %}
<input name="email" type="text" value="Enter your Email here" class="text"/>
<input class="submit" onclick="showDialog();" value="Subscribe!" />
</form>
</div>
如何从以下位置获取 EMAIL 值:
<input name="email" type="text" value="Enter your Email here" class="text"/>
到:
<input name="email" type="text" value="" class="text"/>
从这里:
<div id="dialog-modal" style="display:none;">
<form name="newsletter-form" action="/sub/" method="post">
<input name="email" type="text" value="" class="text"/>
<input name="fname" type="text" value="First name" class="text"/>
<input name="lname" type="text" value="Last name" class="text"/>
<input type="submit" class="submit" value="Subscribe!" />
</form>
</div>
<script type="text/javascript">
function showDialog()
{
$( "#dialog-modal" ).dialog({
});
}
</script>