Closed EltonSouza closed 8 years ago
Hi @EltonSouza , Yes, ...
renderCallback: function($elm, toggled) {
$elm.css({'color': $elm.val()});
}
but, how do I locked the background of input field to does't chance together? And, how do I specify a single input field that will be changed?
Let's say .special
is the className of the input you want to treat special:
renderCallback: function($elm, toggled) {
$elm.filter('.special').css({
'color': $elm.val(),
'background-color': 'white'
});
}
or
doRender: false,
renderCallback: function($elm, toggled) {
$elm.filter('.special').css({'color': $elm.val()});
}
Almost perfect!
The first example is exacly what I need, but I would like to know if is it possible to apply doRender: false only in the elements with the classname .special
?
Thanks!
You're welcome ;) Next time though, please don't open issues on gitHub project if you need help developing something. Issues are meant for bugs or other issues... Use stackoverflow or something similar instead.
Thanks and good luck.
Ok and I'm so sorry, I didn't know it, anyway thanks for the help, I'll post my issues in the Stack Overflow.
Hi, It can be possible to change font color intead of the background color in a input field?