Image inside popup

I need to have an image inside a dropdown using html and php. Can I place the image tag inside the parameter tag. Is there any plugin in jQuery to show it. The problem is in IE.

Please help me

thank

+3
source share
1 answer

You can also add a class to each selection item manually and assign a background image. eg:

HTML:

<select>
    <option class="email">Email</option>
    <option class="phone">Phone</option>
</select>

CSS

.email {
    background:url(path-toyour-icon.png) left top no-repeat #fff;
    padding-left: WITH_OF_YOUR_ICON;
}
.phone {
    background:url(path-toyour-icon.png) left top no-repeat #fff;
    padding-left: WITH_OF_YOUR_ICON;
}
0
source

All Articles