Bogey Posted February 26, 2013 Share Posted February 26, 2013 (edited) Hi all,I have a textarea, which is pre filled out of a database.When I click inside the textarea, to add text, then the area is cleared, instead of keeping the prefilled stuff alive...When I don't type something, and just click outside the area, then the prefilled info returns.When I do type letter, and click outside the area, then only the new letters stays show.When I delete the previous single letter and click outside, then the prefilled stuff is put back again...I want when clicking the area, that the prefilled text stays shown and is adjustable...hope you understand what I mean...BTW the textarea is prefilled from database using PHP... Edited January 3, 2014 by Bogey Link to comment Share on other sites More sharing options...
dsonesuk Posted February 26, 2013 Share Posted February 26, 2013 ??? As long as you don't have javascript check if the textarea is focused on, to clear content, or onblur to check if content is empty, so it shows the the default value, just by using <textarea name="mytextarea" id="mytextarea">Everyone should know, after years of MS updating IE, it is beautiful, Sorry! I mean its still beautifully crappy, still behind other better browsers, so why do they still bother?</textarea> should give you what you want. Link to comment Share on other sites More sharing options...
Bogey Posted January 3, 2014 Author Share Posted January 3, 2014 It has been a while, but it is solved.... there was a specific line in a .js file that caused the problem... thnx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now