Counting characters on textarea #302

Open
priverop opened this Issue Mar 29, 2012 · 1 comment

Projects

None yet

2 participants

@priverop

Sorry for my bad English :S

Hi, I'm trying to make a simple jquery validator.

My main problem is I don't know how to check how many caracters are in the textarea (which has been transformed by jwysiwyg).

I mean, I have this:

if($("#textarea").val().length < 3) ...

But obviously, it doesn't works. I've tried with $(".wysiwyg") and neither. Then I realised that jwysiwyg creates a whole html document, with its head, body...

I don't know how to do it.

Thank you so much

@gerhardmorgen

Hey dumb, try with

dwr.util.getValue("jwysiwyg") //Its a dwr utility to get the value of an element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment