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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -