How do I use jQuery UI's Highlight and Error widgets?

前端 未结 4 831
名媛妹妹
名媛妹妹 2021-02-18 22:54

jQuery UI has some nice convenient CSS styles for alerting and highlighting. I can see it at the themeroller site -- look on the right hand side. Is there a Javascript interface

4条回答
  •  礼貌的吻别
    2021-02-18 23:11

    Apply the appropriate CSS classes for the desired interaction cue from the UI/Theming/API page: .ui-state-highlight for highlight and .ui-state-error for error. You can do it statically or use .addClass('ui-state-highlight') or .addClass('ui-state-error') to do it dynamically.

提交回复
热议问题