custom plugin not working in safari and IE
Hello,
This is my first post and i hope someone can help me. I've written a simple plugin which picks up an attribute and places it as a default value for text fields. Its working well in Firefox but for some reason it isn't on Safari and IE. If i removed the options argument and hardcoded the attribute within the plugin then it works everywhere but not when add some settings
-
$.fn.placeholder = function(options){
settings = $.extend({
attr: 'title',
class: 'text'
}, options);
Can anybody see where i'm going wrong?
I've set up a demo page
http://www.qasimalyas.com/demos/placeholder/
Thanks in advance
kas187