2 replies [Last post]
Bluenose
Bluenose's picture
Offline
Enthusiast
Last seen: 7 weeks 4 days ago
Timezone: GMT+1
Joined: 2011-10-11
Posts: 96
Points: 136

Hello

I have a Web site here:

If a user makes a mistake completing the forms - omits the name field, for example - an error message in red appears on the left to remind him that it is a required field. The error message appears haphazard and untidy, and I was hoping to display it in the form field it and then, when the user clicks on that field, the error message disappears to allow the user to complete the form field correctly.

How would I go about having the error message appear in the form field itself?

Thank you.

Bluenose
Bluenose's picture
Offline
Enthusiast
Last seen: 7 weeks 4 days ago
Timezone: GMT+1
Joined: 2011-10-11
Posts: 96
Points: 136

Not sure what happened to the

Not sure what happened to the link I posted: www.dimadayoub.net/contact.aspx

VeeraM
VeeraM's picture
Offline
Enthusiast
bangalore
Last seen: 4 years 3 weeks ago
bangalore
Timezone: GMT+5.5
Joined: 2014-09-22
Posts: 59
Points: 59

Remove the span tag in error

Remove the span tag in error message text ,
Ex :

Please complete the Name field

Also remove the display:inline and add the text-align:right in our inline css;

Do this changes is all error message text