Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8235647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:52:43+00:00 2026-06-07T18:52:43+00:00

I have a plain select element, which I’m setting to the first option. <select

  • 0

I have a plain select element, which I’m setting to the first option.

<select name="hersteller_typSEL" id="hersteller_typSEL" data-theme="c">
    <option value="aktiv" selected="selected">#tx_sellerlist_available_sellers#</option>
    <option value="alle">#tx_sellerlist_all_sellers#</option>
</select>

First time I load the page, this sometimes works…

If I then select the 2nd option and refresh the page by clicking the (Firefox) refresh button, I’m always getting the 2nd option as inital value, which is driving me insane… because the selected=”selected” is correct on the first option, but JQM puts the test of the 2nd option in ui-btn-text

Question:
How can I set a selected option in JQM when the page loads afresh? (I’m not talking about going back/forth in the DOM, I’m clicking refresh in the browser (Firefox) and I’m still getting the wrong value).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:52:48+00:00Added an answer on June 7, 2026 at 6:52 pm

    According to the docs, jquerymobile.com/demos/1.0a4.1/docs/forms/forms-selects.html, you need to call refresh on the select element after updating it in code.

    You should also do this on page load.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some javascript that looks like this: var sel = '<option value={value} {selected}>{name}</option>';
I want a select element which is multiple, to have its background an aspect
I have a simple select element that I want to set the value for
I have SQL SELECT query which returns a lot of rows, and I have
I have a plain old CLR object which is essentially a wrapper for two
I have a table tb3 wherein id,name,sal are to be displayed using a SELECT
I have created a radio group which contains two buttons, I can select one
I have this line which successfully select all elements of classmyclass on my page:
I have an array char[] Select = {'A','B','C','D','E','F','G','H','I','J'} and each element in this array
Surely, this shouldn't be so hard? I have a <select> , which has, of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.