EasyUI Forum
October 10, 2024, 10:09:49 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: easyui-<...>box 'prompt' option value as easyui-<...>box label hint  (Read 5245 times)
Coder
Jr. Member
**
Posts: 96


View Profile
« 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?
« Last Edit: August 26, 2018, 11:25:54 AM by Coder » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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'
})
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!