Skip to content
Advertisement

Tag: forms

Jquery predefined textarea wont clear

Prefilling a textarea with data pulled from a DB. <textarea name=”body” id=”body” rows=”5″ cols=”70″><? echo $body; ?></textarea> I have a clear button to make it easier for the user to wipe a large chunk of text without having to highlight and delete. The button uses an onclick=”clear();” function call. Here is the function… The problem is it wont clear the

Input Id Name showing to URL?

I have a problem, I am trying to make some forms in bootstrap however it messed up. Once I converted the forms to bootstrap related they are no longer doing the job they’re supposed to do. What I am …

How to keep linebreaks in html textarea POST data

I am trying to have lyrics to a song submitted into a text area. So, this needs to keep the line-breaks when I output. I am aware of the fact that browsers standard should use rn as the line-break, and PHP’s nl2br() function can convert the rn into <br>tags. I am also aware of the fact that textarea inputs require

Advertisement