EasyUI Forum

General Category => General Discussion => Topic started by: Coder on February 16, 2018, 06:45:46 PM



Title: [SOLVED] textbox with menu like searchbox
Post by: Coder on February 16, 2018, 06:45:46 PM
Can I replace in textbox the button (or change buttonType?) to menu like searchbox?
 ( how add menu to textbox)
OR
 how delete search icon in searchbox ? :)


Title: Re: textbox with menu like searchbox
Post by: jarry on February 17, 2018, 05:11:33 AM
Call this code to hide the icon on the searchbox.
Code:
var icon = $('#sb').searchbox('getIcon',0);
icon.hide();


Title: Re: textbox with menu like searchbox
Post by: Coder on February 18, 2018, 03:27:33 AM
and

Code:
$( icon[0] ).removeClass('searchbox-button').addClass('icon-MyButton')

solve my problem!

THANX!