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 8443299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:05:59+00:00 2026-06-10T09:05:59+00:00

So basically this is what I want to do: I have a php variable

  • 0

So basically this is what I want to do:

I have a php variable called $dynamicchange which gets a different value based on different user selections (which page they’re on etc.)

I also have a few select option form inputs which have ‘All’ as an entry in them.

With jQuery, I want to do this:

 [every 1 millisecond, check for and update all input fields if needed] << function

if ($dynamicchange == 'en') {
do not replace anything, the phrase stays as it is, 'All'.
}
if ($dynamicchange == 'tr') {
replace all input phrases every 1 millisecond, changing them to 'Hepsi'.
}

A sample input option I want to target is:

 <select id="sub_cat" style="" name="sub_cat">
 <option selected="selected" value="-10">All</option>

if the value of $dynamicchange is en, it stays as it is and if it’s tr, it changes to Hepsi.

How do I go about doing this? Any help is appreciated.

  • 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-10T09:06:01+00:00Added an answer on June 10, 2026 at 9:06 am

    I don’t understand what you want exactly, but from what I’ve understood you could do something like this

    Put the value in a hidden input

    <input id="test" hidden="hidden" value="$dynamicchange">
    

    then do something like this

    $(function(){
       var herp = $('#test').val();
       if(herp=="en"){
            //do stuff
        }else{ 
            //do other stuff
        }
    });
    

    You can have a counter (not 1 ms your pc will explode) where it triggers again the function. You don’t make clear how this function will fire in the first place so I leave that to your judgement(I would do window.load())

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

Sidebar

Related Questions

So I have library called Engine.php and what it does basically is running example.com/controller/method/value
basically I have a link like so: <a href=file.php?value=this&something=so&please=help>special link</a> And when I click
This is what I'm talking about: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx basically I want to have a drop
I've been struggling with this for a while. Basically, I want to have two
I have this form. Basically what I want is to send a auto-response with
Basically, I want to generate an item, in this case, a ring. I have
I have been stumped all day on this problem. Basically I want to check
I have a Javascript variable which I am setting a PHP variable to. function
This issue is very likely codeigniter specific. I have a controller called redirect.php that
I have an issue with login session. Basically the flow is like this: user

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.