How do I add jQuery UI icon to a input type text? -
i want utilize jquery ui's icon sheet on 1 of input boxes i'm applying datepicker on. tried putting classes on input element show whole row of sheet.
this how figured it. since of inputs in table, used css , negative margin-bottom nullify vertical space caused span.
$(document).ready(function (){ $('.date').datepicker() .each(function(index,element){ $('<span>').addclass('ui-icon ui-icon-calendar').insertafter(element).position({ of: element ,my: 'right top' ,at: 'right top+2' }); }); });
Comments
Post a Comment