EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: roberto on September 17, 2020, 03:02:15 PM



Title: cls property on textbox
Post by: roberto on September 17, 2020, 03:02:15 PM
How to use the cls property in texbox? I tried ... cls: 'myclass' but nothing happened


Title: Re: cls property on textbox
Post by: jarry on September 18, 2020, 07:32:46 AM
The 'cls' property value allows you to set your custom class to the textbox component. The code below will change the colour of the inputing text to red.
Code:
<style type="text/css">
.myclass .textbox-text{
color: red;
}
</style>
<script type="text/javascript">
$(function(){
$('#tt').textbox({
cls: 'myclass'
})
})
</script>


Title: Re: cls property on textbox
Post by: roberto on September 19, 2020, 06:41:53 AM
tanks  :)