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

  • Home
  • SEARCH
  • 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 8197575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:46:12+00:00 2026-06-07T05:46:12+00:00

How to set option selected when using jqtransform on select element. I’m using jqtransform

  • 0

How to set option selected when using jqtransform on select element.

I’m using jqtransform for my form , and I want to set appropriate option value to be selected when I’m retrieving saved data from database.

  • 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-07T05:46:13+00:00Added an answer on June 7, 2026 at 5:46 am

    I believe you would set the value of select the same way as without using the jqTransform.

    E.g.

    $('#mySelect').val('myVal');
    

    Edit:

    Well, this is really ugly but should work:

    var mySelect = $('#mySelect');
    
    //find the current selected option
    var myOption = mySelect.find('option[value='+mySelect.val()+']');
    
    //find the index of that option
    var index = $('#mySelect option').index(myOption);
    
    //trigger the click on the corresponding jqTranfsform element
    mySelect.prev('ul').find('li').eq(index).find('a').click();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using JQuery, I'm trying to set an option as selected in a 'select' element
I'm trying to set an option with a specific value as selected (using jQuery).
i plan to set a checkbox with selected option in my form. but i
if I have the html <select id=autoplay> <option data-autoplay=>no</option> <option data-autoplay=1>yes</option> </select> how using
How to set an option in select by text using jQuery? The following works
I am trying to set the selected value in a dropdownlist using jquery, I
I am trying to set a cookie using the value of a select box
Having a Zend_Form with a Zend_Form_Element_Select on it, i can set ONE option selected
Is it possible to set the selected attribute of an option tag via a
I'm able to successfully set the options for my select list but the selected

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.