Using Dialog with JQuery Validator
Hi,
I am using JQuery Validator like this:
- rules:
- {
- cboPaid:
- {
- required: true
- },
- cboCategory:
- {
- required: true
- },
- dateFrom:
- {
- required: true
- },
- dateTo:
- {
- required: true
- }
- },
I want to use use JQuery dialog with it like this:
- rules:
- {
- cboPaid:
- {
- $('#msgAlert').html("Please select paid or unpaid!");
-
- $('#dialogAlert').popup();
- $("#dialogAlert").popup("open");
- },
- cboCategory:
- {
- $('#msgAlert').html("Please select the category!");
-
- $('#dialogAlert').popup();
- $("#dialogAlert").popup("open");
- },
- dateFrom:
- {
- $('#msgAlert').html("Please select {From} date!");
-
- $('#dialogAlert').popup();
- $("#dialogAlert").popup("open");
- },
- dateTo:
- {
- $('#msgAlert').html("Please select {To} date!");
-
- $('#dialogAlert').popup();
- $("#dialogAlert").popup("open");
- }
- },
How can I do this please?
Thanks,