mellijae
asked on
Page breaks in a form text field?
I really need to get this done... And I've googled and googled it.
I have a text box in a form, with terms that somebody has to agree to before the submit button is made active.
But if you look at the terms and conditions-- there are no paragraph or line breaks.
https://www.onlinedivorcecoach.com/order/
If I put paragraph or line breaks in, the show up in the code.
The form is in Wordpress and I am working in the HTML window. (I just pasted this code from a javascript library site.)
Can anybody please tell me how to divide the content without showing actual <br> tags in the text area?
Thank you in advance!
I have a text box in a form, with terms that somebody has to agree to before the submit button is made active.
But if you look at the terms and conditions-- there are no paragraph or line breaks.
https://www.onlinedivorcecoach.com/order/
If I put paragraph or line breaks in, the show up in the code.
The form is in Wordpress and I am working in the HTML window. (I just pasted this code from a javascript library site.)
Can anybody please tell me how to divide the content without showing actual <br> tags in the text area?
Thank you in advance!
textarea tags are a little funny that way. Try putting in whitespace breaks (no p or br tags, just plain old line breaks) instead :)
ASKER
I tried that Jason. Even though I am working in Wordpress plain HTML window editor-- it is putting in paragraph tags when I do that. Why wouldn't Wordpress edit in plain HTML if they are telling me it's plain HTML?
Pure evil. I say.
Pure evil. I say.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
You can protect a textarea with readonly or disabled and anyone can now edit HTML in the browser thanks to firebug.
However, the div with scrolls is probably a much better solution.
However, the div with scrolls is probably a much better solution.
We both know from answering questions here that not anyone can edit HTML in the browser with firebug =)
But good point on the readonly/disabled
With readonly the info will still be submitted with the form.
With disabled the info will not be submitted, the textarea cannot receive focus and it will be skipped when navigating the form by tabbing.
But good point on the readonly/disabled
With readonly the info will still be submitted with the form.
With disabled the info will not be submitted, the textarea cannot receive focus and it will be skipped when navigating the form by tabbing.
Okay, fine.
...ALMOST anyone...
Literalist. :)
...ALMOST anyone...
Literalist. :)
ASKER
So confused! But this is what I think I'm doing:
Installing a plugin for the advanced TinyMCE, editing in raw html, and making the text area disabled.
Off to go do it right now!
Installing a plugin for the advanced TinyMCE, editing in raw html, and making the text area disabled.
Off to go do it right now!
>> Installing a plugin for the advanced TinyMCE, editing in raw html, and making the text area disabled.
One possibility. The other is to do all of that but change the textarea to a div with the CSS specified by gwkg.
One possibility. The other is to do all of that but change the textarea to a div with the CSS specified by gwkg.
ASKER
I split the points... I didn't know what else to do. I wanted the CSS solution to be chosen, because Jason said that was the "best solution." However, I am not familiar enough with CSS, so I chose to use the raw HTML option.
I hope that's fair. I appreciate both of you!
I hope that's fair. I appreciate both of you!