0

I want to add a clickable question mark to the right side of the select option the or tag but I'm not having any luck. I tried using content in css but the positions are off and I can't add a link and I tried using several options in the body to no luck. Can this be done and if so, how?

Here's the select option: http://jsbin.com/xehozufe/1/

  • I'm not sure I understand. You just want a linked "?" next to the `select`? – bearfriend Apr 22 '14 at 20:16
  • 1
    Oh, you want it next to the ` – bearfriend Apr 22 '14 at 20:17
  • @dg988 there's nothing I can include in the css to accomplish this? –  Apr 22 '14 at 20:18
  • Nope. Like you said, you can get text in there, but there's no way to link it. You could add a `title` attribute that would pop up on hover of the `option`, or add a javascript handler to show/do something when an `option` is selected. – bearfriend Apr 22 '14 at 20:20
  • I am not sure what you are trying to do fits with the component vocation, the best thing I can think is to update your question mark next to your select box when an option is selected, otherwise, I would suggest you to have an explicit list with entries each decorated with a question mark. – P. Lalonde Apr 22 '14 at 22:00

1 Answers1

1

You probably can use

$("#selBox").attr('size', value);

Please check the fiddle. Something on these lines?

ajc
  • 1,685
  • 14
  • 34