Jump to content

Edit Borders


Aggie85

Recommended Posts

Howdy All!

What is the easiest way to change the border color of an edit control (TUniEdit / etc) on the fly? That is, I want to change the border color to the default when the control is entered and if the field is invalid, I want to change it to RED.

All the best,

Aggie85

Link to comment
Share on other sites

Howdy!

I have tried the method(s) used on this thread:

And the problem I am running into is that all my edits that have a FieldLabel apply to the FieldLabel output and NOT the edit box itself.

Any way to disable the FieldLabel and I will just use a TUniLabel + TUniEdit?

All the best,

Aggie85

Link to comment
Share on other sites

OK - I tried the techniques int the following threads:

 

And I just get JS errors....

I just want to call addCls() in a TUniEdit's OnExit() and call a removeCls() in the TUniEdit's OnEnter().

DOES ANYONE HAVE A SIMPLE EXAMPLE? I have spent HOURS with no success. I want to apply the CSS to the edit box of the TUniEdit (NOT THE LABEL).

So how do I do this?

All the best,

Aggie85

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...