jQuery UI Widgets Forums General Discussions DateTimeInput not changing colors

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 7 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • DateTimeInput not changing colors #97686

    rkamarowski
    Participant

    The following code works fine for input widgets, but nothing is happening when used with a DateTimeInput. What am I doing wrong?

    var a = document.getElementById("dateTimeInputRightOrderDate");
        a.style.backgroundColor = style["InputBackgroundNewColor"];
        a.style.color = style["InputTextNewColor"];
    DateTimeInput not changing colors #97687

    Peter Stoev
    Keymaster

    Hi rkamarowski,

    That is incorrect way to change colors of a widget. I would suggest you to check the Styling and Appearance help topic which each widget has. You will learn which CSS classes are applied to a given widget and so you will need to override a built-in CSS class if you wish to modify border color, font size, background color, color, etc.

    Regards,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.