[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-25 Thread shapper
: [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

[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-24 Thread shapper
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

[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-24 Thread Jörn Zaefferer
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

[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-24 Thread shapper
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) {

[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-24 Thread Jörn Zaefferer
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

[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-24 Thread shapper
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) {

[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-24 Thread Josh Nathanson
: [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

[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-23 Thread Jörn Zaefferer
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: