Your reduction works well, Dave...thanks. As far as the subject line... I had [Validate] at the beginning of it, which is what Jorn requested if the email has to do with his plug-in.
Did [Validate] get stripped out? And concerning the error, it's got to do with the validation events. I'm trying to use only "onfocusout", but can't figure out the correct syntax. Rick > -----Original Message----- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Dave Methvin > Sent: Sunday, December 21, 2008 10:52 AM > To: jQuery (English) > Subject: [jQuery] Re: What is causing this error? > > > I don't know about the validation issue. The vague title of the thread > may mean that nobody answers because they don't know it's about the > validation plugin. > > I did notice this though... > > > errorPlacement: function(error, element) { > > if(element.attr('id') == 'street_number') { > > error.appendTo('#street-number-error'); > > } > > (etc...) > > You could reduce your error placement function to one line: > > errorPlacement: function(error, element){ > error.appendTo('#'+element.attr('id').replace(/_/g,'-')+'-error); > }