Welcome Guest, Not a member yet? Register   Sign In
Validation: How to change CSS-style in case of error
#2

[eluser]sikkle[/eluser]
More than one solution for that, honestly, you should use JS to handle that.

Second option is to duplicate css code, look if $this->validation->name got a value and class=<?php echo '1pixform'; ?>.

More complete solution will be to if else all that if you want to control them all, OR create a helper who echo what you need there to always use it everywhere like change_css_class('name');


Good luck !


Messages In This Thread
Validation: How to change CSS-style in case of error - by El Forum - 06-29-2008, 07:29 AM
Validation: How to change CSS-style in case of error - by El Forum - 06-29-2008, 08:07 AM
Validation: How to change CSS-style in case of error - by El Forum - 06-29-2008, 09:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB