Welcome Guest, Not a member yet? Register   Sign In
Form Validation - P Tags ?
#1

[eluser]surf66[/eluser]
Hi

I'm tidying up my form validation and I want to use small cross icons next to the form fields which have error after form validation is run.

I have everything in place and it all works apart from one thing!!

Basically I want the
Code:
form_error('form_field');
in the title tag of the image so that when you hover over the red cross it just says "The name field is required".

This is working but when you hover over the image it says this:

Code:
"<p>The name field is required</p>"

How can I get rid of the p tags??

Tom
#2

[eluser]Mirge[/eluser]
Read the documentation, right where you discover form_error()... http://ellislab.com/codeigniter/user-gui...delimiters




Theme © iAndrew 2016 - Forum software by © MyBB