如何在dojo中发生错误时更改工具提示显示的默认消息

时间:2013-01-23 04:42:40

标签: dojo

每当我提交表单时,默认情况下我都没有在文本字段中输入任何内容,我会得到一个问题" 请填写此字段"。

如何将消息更改为名字是必需的

< html >

< head >< /head >

< body >

< form action="a.html" >

< label for="firstName">First Name: < /label > 

< input type="text" id="firstName" name="firstName" 

      dojoType="dijit.form.ValidationTextBox"

      required="true" 

      propercase="true" 

      promptMessage="Enter first name." 

      invalidMessage="First name is required." 

      trim="true" 

/>< br>

< input type="submit" value="submit"/>

< /form>

< /body >

< /html>

1 个答案:

答案 0 :(得分:0)

听起来你想要设置&#34; missingMessage&#34;也是:

相关问题