EasyUI Forum
April 16, 2024, 10:39:39 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: color single word in textbox  (Read 4794 times)
wymak
Newbie
*
Posts: 26


View Profile
« on: January 16, 2017, 08:56:22 AM »

I want to have a textbox showing 'the sky is blue', but the following code working, please enlighten me:


 <input  id='ititle' name='title' class='easyui-textbox'  style="width:100%;">

     <script type="text/javascript"> 
       
     $(function(){ 
      $('#ititle').textbox('setValue',"the sky is <font color='blue'>blue</font>");
     });  // end $function()
      
</script>
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 16, 2017, 05:32:46 PM »

No, an <input> element does not allow to display html code with multiple styles.
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!