I've got a required field and a regular expression validator on the same text box, both of which work. The only problem is the asterisk marking the invalid field doesn't line up with the side of the text box. i.e.
|=====| this is a textbox...
If the textbox is empty then the validator looks like this
|=====| *
If the regex is invalid then the validator looks like this
|=====| *
Even if the required field validator is not displayed, it still has a width which pushes the regex validator over.
I've tried styling it but had no luck, any ideas how I can remove the width/make invisible/remove from being displayed the required field validator if there's text in the box?
Thanks
|=====| this is a textbox...
If the textbox is empty then the validator looks like this
|=====| *
If the regex is invalid then the validator looks like this
|=====| *
Even if the required field validator is not displayed, it still has a width which pushes the regex validator over.
I've tried styling it but had no luck, any ideas how I can remove the width/make invisible/remove from being displayed the required field validator if there's text in the box?
Thanks