tinyMce validation problem?

R

Ravi Katta

Hi,

i am using the tinyMce text editor in my rails app.But how to
write the java script validation for that textarea?

my validation is:

In that textarea all numbers are not allowed.

I am getting the data from textarea using
tinyMce.get("id").getContent().
but i am getting <p>1234</p> this data from above code.

i dont want any html tags.i want only data what we entered in textarea.
how to get that data?

thanks,
Ravi.
 
M

Mark Thomas

But how to
write the java script validation for that textarea?

I think you've posted in the wrong forum. This is a javascript
question, is it not? If it has something to do with rails, you may
want to try the Rails-Talk Google group. Otherwise, try
comp.lang.javascript.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top