: [validate] Validation Plugin issue when using TinyMCE
You mean the { after the else? Yes, I noticed that before.
I keep having the same problem. The form is not validated when I use
errorPlacement.
I am using:
$(#New).validate({
errorClass: Error,
errorElement: label
Hello,
I checked the markup used by TinyMCE and it is something as follows:
label for=QuestionQuestion/label
textarea id=Question cols=20 rows=10 name=Question
style=display: none;/
span id=Question_parent class=mceEditor BonsAlunosSkin
table id=Question_tbl class=mceLayout
How about this:
errorPlacement: function(error, element) {
if (element.is(:textarea))
error.insertAfter(element.next());
else {
error.insertAfter(element);
}
Jörn
On Tue, Jun 24, 2008 at 2:18 PM, shapper [EMAIL PROTECTED] wrote:
Hello,
I checked the
Hello,
I have been trying to make JQuery Validation with TinyMCE and until
now I wasn't able to do this. I have 2 text areas converted to
TinyMCE. I am using:
$(#New).validate({
errorClass: Error,
errorElement: label,
errorPlacement: function(error, element) {
There was a syntax error in the errorPlacement, try this:
errorPlacement: function(error, element) {
if (element.is(:textarea))
error.insertAfter(element.next());
else
error.insertAfter(element);
},
On Tue, Jun 24, 2008 at 11:36 PM, shapper [EMAIL
You mean the { after the else? Yes, I noticed that before.
I keep having the same problem. The form is not validated when I use
errorPlacement.
I am using:
$(#New).validate({
errorClass: Error,
errorElement: label,
errorPlacement: function(error, element) {
: [validate] Validation Plugin issue when using TinyMCE
You mean the { after the else? Yes, I noticed that before.
I keep having the same problem. The form is not validated when I use
errorPlacement.
I am using:
$(#New).validate({
errorClass: Error,
errorElement: label
Most likely TinyMCE creates a new element and places it after the
textarea, hiding the former. Use the errorPlacement-option to
customize the placement for that case.
Jörn
On Mon, Jun 23, 2008 at 1:54 AM, shapper [EMAIL PROTECTED] wrote:
Hello,
I have the following rules:
8 matches
Mail list logo