• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

tabindex

New Here ,
Dec 19, 2006 Dec 19, 2006

Copy link to clipboard

Copied

would there be a way to get the tabindex to stay once an item is selected this is my code

right now it selects what the client selects and refreshes the page however the tab goes back to the address bar in IE and does not stay on the dropdown list the client was on.
TOPICS
Advanced techniques

Views

303

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 19, 2006 Dec 19, 2006

Copy link to clipboard

Copied

you'd want to look at using JavaScript to give focus() to the field that you want. if it's always going to be that particular field, add the following JS:

<script type="text/javascript">
onload = document.YOURFORMNAMEHERE.model.focus();
</script>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 19, 2006 Dec 19, 2006

Copy link to clipboard

Copied

can i use this code on more than one Dropdown list I have 4 of them and i would like this to happend once they select one it stays on that one till he selects from the second dropdown

is that possible

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 19, 2006 Dec 19, 2006

Copy link to clipboard

Copied

LATEST
you can use it on any element.

you'll need to get creative and pass your form the name of the field that triggered the submit so you'll know which field to give focus when the page reloads.

you could also look at an AJAX solution using something like Spry or JSMX.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation