I use the excellent jquery.simplemodal text plugin to display a list of items. These elements contain hyperlinks. This all works just fine, except that links appear in modal dialog mode as part of the tab order. I tried installing tabindex explicitly, but for some reason, only the input elements are in tab order - if I enter a dialog, I just look at the three input elements and donβt click on the anchors.
Am I doing something wrong with calling a simplemodal plugin?
Example: http://dev.andrewbucknell.com/basic/demo1.html
The code (with relative paths) for demonstration is as follows
<!DOCTYPE html> <html> <head> <title> SimpleModal Basic Modal Dialog </title> <meta name='author' content='Eric Martin' /> <meta name='copyright' content='2010 - Eric Martin' /> <link type='text/css' href='css/demo.css' rel='stylesheet' media='screen' /> <link type='text/css' href='css/basic.css' rel='stylesheet' media='screen' /> </head> <body> <div id='container'> <div id='logo'> <h1>Simple<span>Modal</span></h1> <span class='title'>A Modal Dialog Framework Plugin for jQuery</span> </div> <div id='content'> <div id='basic-modal'> <h3>Basic Modal Dialog</h3> <p>A basic modal dialog with minimal styling and no additional options. There are a few CSS properties set internally by SimpleModal, however, SimpleModal relies mostly on style options and/or external CSS for the look and feel.</p> <input type='button' name='basic' value='Demo' class='basic'/> or <a href='#' class='basic'>Demo</a> </div> <div id="funddialog"> <div id="fundpickfilter"> <div class="fundfilter"> <label style="font-weight: bold;" for="filtertext">Find: </label> <input class="tfilter" type="text" id="filtertext" value=""/> </div> <div id="fundactions"> <button type="button" id="fundsearch" class="searchbutton">Search</button> <button type="button" id="fundreset" class="resetbutton">Reset</button> </div> </div> <div id="fundpicklist"> <div class="fund"><a href="http://www.slashdot.org" >Item 1</a></div> <div class="fund"><a href="http://www.arstechnica.com" >Item 2</a></div> <div class="fund"><a href="http://www.techmeme.com" >Item 3</a></div> </div> </div> <div id="basic-modal-content"> <div id="funddialog"> <div id="fundpickfilter"> <div class="fundfilter"> <label style="font-weight: bold;" for="filtertext">Find: </label> <input class="tfilter" type="text" id="filtertext" value=""/> </div> <div id="fundactions"> <button type="button" id="fundsearch" class="searchbutton">Search</button> <button type="button" id="fundreset" class="resetbutton">Reset</button> </div> </div> <div id="fundpicklist"> <div class="fund"><a href="http://www.slashdot.org" >Item 1</a></div> <div class="fund"><a href="http://www.arstechnica.com" >Item 2</a></div> <div class="fund"><a href="http://www.techmeme.com" >Item 3</a></div> </div> </div> </div> </div> </div> <script type='text/javascript' src='js/jquery.js'></script> <script type='text/javascript' src='js/jquery.simplemodal.js'></script> <script type='text/javascript' src='js/basic.js'></script> </body> </html>
source share