Hello,

I'm working on Javascript and I have created a drop down list box.
In my attached example I have a list of LS1,LS2,LS3,LS4 (as reasoncodes)
My question: is there a way to create a mouse over in this drop down box to display
text(Description pertaining to the reason codes) when hovering over each reasoncode in the list box.
for example when I hover over the reasoncode (LS1) I would like a text to pop up like a comment box and display the Description "Problem Statemnt" and if I hover over the reason code(LS2) I would like it to display the Description "Solution Statement" and so forth....

Point i am trying to make here with the example is both 'Reasoncodes' and 'Description' are fetched from DB.

I appreciate the help

I dont think simple javascript code can do that. I am not sure jquery can do that or not.

Simply why dont you keep both descripion and code in the option display value together.

<option value='ls2'>Solution Department (ls2)</option>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.