html - jQuery Validate custom messages -


i have input want display custom error message on when user doesn't fill out.

    <input type="text" class="foo" value="" data-prop="foo" data-rules="{ required: true }"></input> 

how add custom error message specific input?

use:

data-msg-required="please enter here!" 

here's demo html code: https://github.com/jzaefferer/jquery-validation/blob/master/demo/custom-messages-data-demo.html

js fiddle demo: http://jsfiddle.net/leniel/vuppy/48/


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -