Forums / Craftwork / Client-side / Form example

Twiebie
#1 2010-11-24 23:04
Could someone give a little help with putting in 'examples' in form fields?

I've tried the following as a test but it's not working:

HTML:
<input type="text" id="exampleclass" title="Title Here" />

Javascript:
$('#exampleclass').example(function() {
return $(this).attr('title');
}, {className: 'not_example'});
ez
#2 2010-11-24 23:46
Tweebie,

You have probably seen this: http://mucur.name/system/jquery_example/

Is the Jquery plugin properly loaded ?
And is the css allright ?
==- I say: Keep it EZ -==
Twiebie
#3 2010-11-25 06:55
I think the plugin isn't loaded properly as you suggested.
My knowledge of Javascript and jQuery is pretty basic, and I might be overlooking a few things.

The CSS looks good though.