Hi Jorn, thanks for replying

What i meant was, if for example, an a'ddress' textarea, users will
input his address and there will must be newline(\n) character there.
It's validated for sure with jquery validation plugin but it doesnt
seem to send the value in the textarea, as it is read as " " not as
"+" (like on input field). However i have worked around this by adding
a function to be activated in onblur condition. Here's the function :

function doThing(t) {
                                var v = t.value.replace(/\r\n|\n|\r/g, " ");
                                t.value = v;
}


It works, but just want to know if  there are any other way simpler
than this.

Thanks




On Sep 3, 5:58 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> The required method uses $.trim on the value first, before checking
> the length. \n is considered whitespace and therefore ignored. So a
> textarea that contains nothing but \n is invalid for the required
> method.
>
> Does that answer your question?
>
> Jörn
>
> On Tue, Sep 2, 2008 at 7:01 PM, Andy <[EMAIL PROTECTED]> wrote:
>
> > I mean is it suppporting the newline (\n) character to be validated
> > before passed through to another page?
> >  because mine doesnt seem to work
>
> > On Sep 2, 11:55 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> > wrote:
> >> Work? Like submitting the form when pressing enter in a textarea? How
> >> is that related to the validation?
>
> >> Jörn
>
> >> On Tue, Sep 2, 2008 at 6:44 PM, Andy <[EMAIL PROTECTED]> wrote:
>
> >> > If users press <enter> or newline on textareas it doesnt seem work
>
> >> > On Sep 2, 10:47 pm, andy prasetyo <[EMAIL PROTECTED]> wrote:
> >> >> Ok, Jorn here it is 
> >> >> :http://d661480.u34.strictlywebhosting.com/register.html..really
> >> >> appreciate your help and guidance
>
> >> >> Thanks
>
> >> >> On Sep 2, 10:40 pm, andy prasetyo <[EMAIL PROTECTED]> wrote:
>
> >> >> > ok one min let me upload..it doesnt seem to pass the value if i use \n
> >> >> > (newline)
>
> >> >> > On Sep 2, 10:17 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> >> >> > wrote:
>
> >> >> > > Could you be more specific, eg. provide a testpage?
>
> >> >> > > Jörn
>
> >> >> > > On Tue, Sep 2, 2008 at 2:05 PM, andy prasetyo <[EMAIL PROTECTED]> 
> >> >> > > wrote:
>
> >> >> > > > I usejquery validationplugin from bassistance.de, but everytime i
> >> >> > > > use it on textarea, it doesnt work (doesnt pass the value 
> >> >> > > > properly).
> >> >> > > > Any suggestions?

Reply via email to