norcross / gf-tooltips

Convert Gravity Forms description fields into tooltips
12 stars 7 forks source link

Displaying tooltip at input / textarea instead of label #4

Closed xcellenceit closed 11 years ago

xcellenceit commented 11 years ago

Hi,

Its a great plugin that works really well. Thank you.

I've applied it to label, as icon doesn't fit properly into the design... However visitor doesn't get a clue that there is a tooltip when they hover on the label... so I think its great if we can change it to display tooltip when he is hovering on the input or actually typing into input / text area.

Any idea how can we display tooltip on input/text area instead of the label.

Any help is appreciated.

Thank you

norcross commented 11 years ago

offhand it would be a matter of targeting the different area. but from a UI perspective having things pop up / change while entering text would be a pain for the user.

you can also use the icon type and tweak the CSS to fit your liking.

xcellenceit commented 11 years ago

Can you give me an idea what changes I should be making and where?

norcross commented 11 years ago

if you look in the gf-tooltips.js file, you'll see how it's being called based on the options in the plugin and where it's applied (label or icon). change the call there, or add your own.

xcellenceit commented 11 years ago

Okay. Thank you for your support. We'll try that.