I have a registration form implemented using jquery mobile. The user can choose to complete this form in either German, English or French - there are multiple internal pages used to display the form in each language .. The user selects their preferred language via a menu button.
I'm using the jquery validate plugin to handle client-side form validation. This works fine .. I'm wondering how to enable the right error messages for the form on each language page ? When you download the plugin from github it includes all the localization error code but I'm not sure how to enable it ..
Here's the JavaScript code I'm using to handle implementing the form validation for each language page ..
Thanks if you can help me to enable the right error messages for the German & French pages ..
$(document).on("pageshow", "#page_deutsch", function() {
$("#register_deutsch").validate();
});
$(document).on("pageshow", "#page_english", function() {
$("#register_english").validate();
});
$(document).on("pageshow", "#page_francais", function() {
$("#register_francais").validate();
});