EasyUI Forum
September 14, 2025, 04:45:18 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: trying to apply style to component  (Read 9376 times)
crosemffet
Jr. Member
**
Posts: 68



View Profile WWW Email
« on: November 30, 2012, 04:03:44 AM »

I'm trying to apply a style to validatebox component trough my whole application
I mean trought the whole application, each time a validatebox components uses, use the same predefined style.
I'm trying:

$.extend($.fn.validatebox.defaults,{
style: 'border:1px solid #A4BED4'
});

but it's not working.
what's wrong with my code?
thanks, in advance,
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 01, 2012, 12:08:38 AM »

To apply a style to a validatebox component, define a style class and add it to the input markup of validatebox.
Code:
.myclass{
  border: 1px solid #A4BED4;
}
<input class="easyui-validatebox myclass" required>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!