add placeholder text to login.php page

Permalink
Hi folks,

I'm customising my login page, working on a duplicate of login.php in my single_pages directory.

I'm trying to add placeholder text in the 'username' and 'password' fields so that the instructions (eg. enter username) will appear in these areas and then disappear when a user clicks in this field.

I've read through this similar question:http://www.concrete5.org/community/forums/usage/insert-the-value-of...
,but the code refers to the login block, not the default login page.

I understand that I'll likely need to use a jquery plugin to make this work on IE, but if anyone knows what code to change in the login.php file Id be very grateful.

thanks
laaaamb
View Replies: View Best Answer
laaaamb replied on at Permalink Reply
laaaamb
Anybody?
Blenderite replied on at Permalink Reply
Blenderite
Usually, I would use the placeholder="" attribute inside the <input> tag, but that doesn't seem to work.

Take a look at this page. It has a JQuery plugin that may be worth you time.

One thing I should warn you about real quick. If you choose to go the route of JQuery and use this plugin, make absolutely sure that you remove this line from the top:

<script src="jquery.js"></script>


I hope this helps you!

-Blenderite
laaaamb replied on at Permalink Reply
laaaamb
Thanks for taking the time Blenderite, but you forgot the link.
Blenderite replied on at Permalink Best Answer Reply
Blenderite
That is weird! I remember pasting it there!

Here it is:http://webdesignerwall.com/tutorials/cross-browser-html5-placeholde...

Sorry about that!

-Blenderite
laaaamb replied on at Permalink Reply
laaaamb
That worked.

Thanks Blenderite!!