jQuery UI comes with handy icons in a sprite image; see the themeroller.
I have an input element for which I want the clock icon (with class .ui-icon-clock) as background image. How do I have a background icon to an input?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
just use an empty span and add the jQuery UI classes.
You have to override the display style to make it inline-block rather than block otherwise the input will be pushed to the next line.
Other than that, I’m not sure exactly what you’re after when you say make the clock the background image.