• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: (SOLVED) :-) Field with Caption inside field

(SOLVED) :-) Field with Caption inside field 12 years 6 months ago #20052

Place caption inside field but it needs to not be default data rather when you click in the field it should disappear and let you enter data. How can this be done ? see www.nelsonsmith.com for example of what i am talking about....
Last Edit: 12 years 5 months ago by patrick.a.boyce.
The administrator has disabled public write access.

Field with Caption inside field 12 years 5 months ago #20162

Nobody Well that sucks
The administrator has disabled public write access.

Field with Caption inside field 12 years 5 months ago #20183

The administrator has disabled public write access.

Field with Caption inside field 11 years 11 months ago #23527

  • tobypsl
  • tobypsl's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 62
  • Thank you received: 1
The above script doesn't appear to work properly for more than 1 field per form.

Joomla 3.1 site.
The script is present in 3 text box fields but only works for the first.
Have tried the form layout in classic and xhtml layouts - but wont work for all 3 boxes.

Any ideas anyone?

Thanks.
The administrator has disabled public write access.

Field with Caption inside field 11 years 11 months ago #23563

To work, that code needs to be placed in each input field

so the end result is:

<input type="text" id="firstname" name="firstname" value="First Name*" onfocus="if (this.value=='First Name*') this.value=''; " onblur="if (this.value=='') this.value='First Name';">

Cheers,
Pete
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!