![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, We are trying to use the validation plugin with HTML that's been generated for us. There are a couple of things we'd like to customise if we can for the plugin to work with this HTML. One of them is that the code uses some HTML5 conventions - like how to specify when an input is required: Usually you'll have something like: input type="text" class="required" In our HTML, we'd have: input type="text" required Is there a way to customise/configure the validation plugin to recognise the latter? Thanks - Iwan |
#3
| |||
| |||
|
|
The plugin by default picks up attributes, so if you're using attribute names that match validation plugin methods, it should work like that. Though you may need to also provide a value, ala required="true", not sure about that. |
#4
| |||
| |||
|
|
Hi Jörn, On Nov 7, 3:28*pm, Jörn Zaefferer <joern.zaeffe... (AT) googlemail (DOT) com wrote: The plugin by default picks up attributes, so if you're using attribute names that match validation plugin methods, it should work like that. Though you may need to also provide a value, ala required="true", not sure about that. This works for validation methods, but not for the required... Regards - Iwan |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |