有没有办法在密码框中显示表单验证消息?因为当我提交表单时,我没有在框中收到错误消息。我知道它不是文本框,但仍然有可能的方法吗?这是我正在使用的脚本..
<form action="mail.php" id="theform" name="theform" method="post">
<p><label for="name">Name</label><br />
<input id="name" type="text" value="" name="name" />
</p>
<p><label for="email">E-mail</label><br />
<input id="email" type="text" value="" name="email" />
</p>
<p><label for="message">Password</label><br />
<input id="password" type="password" rows="7" cols="30" name="password"></input>
</p>
<p><input class="submit" type="submit" name="submit" value="Submit Form" />
</p>
<p id="error">There were errors on the form, please make sure all fields are fill out correctly.</p>
</form>