0

http://tympanus.net/codrops/2012/11/29/simple-effects-for-drop-down-lists/

I have put the Simple Effects Dropdown List jQuery control into my MVC application and need to know how I can add links to the select options so I can use it to navigate my views. The markup is a Select input control.

tereško
  • 58,060
  • 25
  • 98
  • 150
Alex
  • 63
  • 1
  • 6
  • have you tried something as simple as `` ?... – 13ruce1337 Mar 27 '14 at 16:12
  • Yes, this does nothing – Alex Mar 27 '14 at 16:17
  • 1
    ahh, here ya go: [using href links inside – 13ruce1337 Mar 27 '14 at 16:23
  • I've tried that too, I think the problem is that this jQuery control renders the Select control as span elements on the page so this is stripped out. – Alex Mar 27 '14 at 16:28
  • The Simple Effects control changes the default structure of the option list into a series of s. You may need to study the "js/jquery.dropdown.js" file to manually manipulate the s If you want to use this control, my suggestion will be to create another button to direct you to the selected link. – Don Barry Mar 27 '14 at 16:48
  • Thanks all, I have managed this by editing jquery.dropdown.js - it defines its output like so '
  • ' + label + '
  • ' - I modified this to include an anchor tag supplying the val as the link: '
  • ' + label + '
  • ' - and supplied an MVC friendly link like: value="~/jQuery/index" – Alex Mar 27 '14 at 17:08