EasyUI Forum
June 19, 2024, 05:21:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to remove the <a class="tagbox-remove" href="javascript:;"> of a TagBox?  (Read 3060 times)
kingor2001
Jr. Member
**
Posts: 61


View Profile
« on: June 20, 2019, 06:22:38 AM »

How to remove the <a class="tagbox-remove" href="javascript:;"> of a TagBox?
This <a> is perhaps unuseful.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2266


View Profile Email
« Reply #1 on: June 20, 2019, 06:40:10 PM »

Please use this code to custom the removable icon.
Code:
<input class="easyui-tagbox" value="Apple,Orange" label="Add a tag" style="width:100%" data-options="
tagStyler: function(value){
return {class:'mytag'};
}
">
<style type="text/css">
.mytag{
padding: 0 4px;
}
.mytag .tagbox-remove{
display: none;
}
</style>
Logged
kingor2001
Jr. Member
**
Posts: 61


View Profile
« Reply #2 on: June 20, 2019, 09:51:31 PM »

thanks, it done!
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!