title: JSP/Jquery - combo box dropdown dynamically loaded from database with image
body: <p>In my web application I need to display a drop down dynamically loaded from database.<br>
  I need to load the list of users from DB. Each user will have 'access level' as 1 or 2.<br>
  When the users are displayed in the dropdown they must have an image in the side of their name.<br>
  (like 'Green' tick for 'access level' 1) and (red cross for access level 2).<br>
  I have checked this url <a href="http://www.marghoobsuleman.com/jquery-image-dropdown" rel="nofollow">http://www.marghoobsuleman.com/jquery-image-dropdown</a>.<br>
  But I need to to display the image based on the access level loaded from DB.<br>
  I guess this can be done by JQuery/CSS.   </p>
  
  <p>Can anyone please tell how this can be done and if possible sample code please?</p>