EasyUI Forum
May 04, 2024, 11:33:10 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: cls property on textbox  (Read 3336 times)
roberto
Jr. Member
**
Posts: 88


View Profile Email
« on: September 17, 2020, 03:02:15 PM »

How to use the cls property in texbox? I tried ... cls: 'myclass' but nothing happened
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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>
Logged
roberto
Jr. Member
**
Posts: 88


View Profile Email
« Reply #2 on: September 19, 2020, 06:41:53 AM »

tanks  Smiley
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!