I have a page with a textbox defined like…
<input type="text" hinttext="Here is the hint text" />
I am trying to set the ‘hint’ text of the control using the tbHinter call and have tried…
$('input').tbHinter({ text: this.getAttribute('hinttext') });
and
$('input').tbHinter({ text:this.attr('hinttext') });
neither work.
I know I am missing something obvious. Can someone point me in the right direction please?
In your initial example
thismost likely is going to be a reference to thewindow. To accomplish this you will need to iterate over each input box so you have a reference to the input.Example on jsfiddle.