EasyUI Forum

General Category => General Discussion => Topic started by: Coder on August 26, 2018, 11:23:17 AM



Title: easyui-<...>box 'prompt' option value as easyui-<...>box label hint
Post by: Coder on August 26, 2018, 11:23:17 AM
how to get label object for assign tooltip with content from prompt value?

or may be add labelHint option to easyui-<...>box options?


Title: Re: easyui-<...>box 'prompt' option value as easyui-<...>box label hint
Post by: stworthy on August 26, 2018, 06:14:29 PM
You can call 'label' method to get the label object.
Code:
var label = $('#tb').textbox('label');
console.log(label)

Call the code below to build a tooltip on the textbox.
Code:
$('#tb').textbox('textbox').tooltip({
content: 'tooltip content'
})