EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 08:49:28 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
color single word in textbox
Pages: [
1
]
« previous
next »
Print
Author
Topic: color single word in textbox (Read 4873 times)
wymak
Newbie
Posts: 26
color single word in textbox
«
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
Re: color single word in textbox
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...