Aggie85 Posted October 2, 2022 Share Posted October 2, 2022 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 Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted October 3, 2022 Author Share Posted October 3, 2022 Anybody?????? Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted October 3, 2022 Author Share Posted October 3, 2022 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 Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted October 4, 2022 Author Share Posted October 4, 2022 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 4, 2022 Share Posted October 4, 2022 Hello, 2 hours ago, Aggie85 said: And I just get JS errors.... Which error? Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted October 4, 2022 Author Share Posted October 4, 2022 addCls() function doesn't exist How do I get a CSS class to apply to the input part of a TUniEdit? When I just use the TUniEdit's JSName() + _I'd with addCls(), the CSS gets applied to the FieldLabel and not the inner edit control. Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted October 4, 2022 Author Share Posted October 4, 2022 OK... I finally figured out what I was doing wrong. All the best, Aggie85 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.