EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on November 05, 2014, 10:49:42 PM



Title: datebox background color
Post by: jaimi on November 05, 2014, 10:49:42 PM
How can I change the background-color of a datebox.
I tried this, but it diesn't fill the whole field:
$('#HOM_GEBURTSDATUM').datebox();
  var tb = $('#HOM_GEBURTSDATUM').datebox('textbox').css("background-color","green");
  tb.parent().tooltip({
     position: 'right',
     content: '<span>Geben Sie das Geburtsdatum des Pferdes ein.</span>'
  }); 

thx, Jaimi


Title: Re: datebox background color
Post by: jarry on November 06, 2014, 12:25:44 AM
Please try the following code.
Code:
$('#HOM_GEBURTSDATUM').datebox();
var tb = $('#HOM_GEBURTSDATUM').datebox('textbox');
tb.add(tb.parent()).css("background-color","green");
tb.parent().tooltip({
position: 'right',
content: '<span>Geben Sie das Geburtsdatum des Pferdes ein.</span>'
}); 


Title: Re: datebox background color
Post by: jaimi on November 06, 2014, 12:42:56 AM
thanks, that works.