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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:05:58+00:00 2026-06-15T11:05:58+00:00

i do a script like this: $(#last).bind(change, function() { var myselect = document.getElementsByTagName(select); var

  • 0

i do a script like this:

$("#last").bind("change", function() {
    var myselect = document.getElementsByTagName("select");
    var numselect = myselect.length;
    var oldid = "select-" + numselect;
    var newidslider = "slider-" + (numselect + 1);
    $('#last').attr('name', oldid);
    $('#last').attr('id', oldid);
    $('#last').selectmenu("refresh", true);
    $('#selects').append('<label for="last" class="select">scegli personaggio:</label><select name="last" id="last"><option value="pippo">pippo</option><option value="pluto">pluto</option><option value="paperino">paperino</option><option value="topolino">topolino</option></select><div class="spazio"></div><input type="range" name="' + newidslider + '" id="' + newidslider + '" value="50" min="0" max="100"/>').trigger('create');
});

it work fine when i use app safari mobile or chrome mobile, but when i visit my site after i “added to home screen” the js doesn’t work!
Anyone does know this problem! i’m stuck in this situation!
thanks for attentions!

  • 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-15T11:05:59+00:00Added an answer on June 15, 2026 at 11:05 am

    I’m not sure about anything to do with mobile or “add to homescreen”, but there are a couple of lines in that code that may cause a problem. I am just reading the code, I haven’t run it, so I could be wrong.

    $('#last').selectmenu("refresh", true);
    

    That will not find any element to operate on, since the previous line has changed the item’s ID so that it is not “last” anymore.

    $('#selects').append(.....
    

    is creating a new element with the ID “last”, but if you want that to also get the onChange function, you will have to attach it again. The original bind() call only operates on the item that had the ID “last” at the time it was run.

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

Sidebar

Related Questions

I have a script that looks like this : <script type='text/javascript'> $(document).ready(function(){ setInterval(function() {
I have a script that looks like this #!/bin/bash function something() { echo hello
I have a PL/SQL script like this... DECLARE CURSOR curs_delete IS SELECT cus_num FROM
I want to use a countdown script like this var montharray=new Array(Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec) function countdown(yr,m,d,idCountdown){
I have script like this : fullscript.sh if [ ! -f /opt/laks/linux-2.6.33.2.tar.bz2 ] then
I've got a script like this: dyski=$(df -h) while read wiersz; do i=0; for
The data returned when i send a request with NSURLconnection contains script like this
I can display a simple Visual Basic inputbox from a PowerShell script like this:
On windows, I can run my ruby script like this: > ruby myscript.rb but
for the moment the script does like this: click on the link edit the

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.