I have a form with three sections. Each section has a dedicated div for fairly long contextual help messages regarding input that has focus.
My question is, if I give each of these prompts divs a form-tip class and every input that has a has-tip prompt, how can I get a prompt to always appear in the previous “form-tip” "div?
Sort of:
$('.has-tip').each(focus(function() {
var tip = $(this).attr('title');
}));
Hope this makes sense ... Thanks for any help.
source
share