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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:32:32+00:00 2026-05-25T03:32:32+00:00

I am having an issue with jQuery and all browsers. What is happening is

  • 0

I am having an issue with jQuery and all browsers. What is happening is that I click somewhere and the options are refreshing.

To create the select drop down I am using the following code.

function yearselect(){
            setTimeout(function() {
                        var minOffset = 0, maxOffset = 5;
                        var yearSelector = $('select[name=year]');
                        var thisYear = new Date().getFullYear();
                        //var select = $('<select name="year" id="yyyy" class="formbox dobselect">');

                        for (var i = minOffset; i <= maxOffset; i++) {
                            var year = thisYear + i;
                            $('<option></option>')
                            .attr('label', year)
                            .attr('value', year)
                            .html(year)
                            .appendTo(yearSelector);
                        }


                    },900); 
}

If someone would be able to tell me what I am doing wrong that would be great.

The form is being created by jQuery:

function newbusinesslead(){

$("#menuarea").html('<div id="backmain" class="backbg">Back</div><div id="nav" class="backbgright">New Business Lead</div>'+
                    '<form id="newbusinesslead">'+
                    '<div id="leftform" class="line-height"></div><div id="rightform"></div>'+
                    '</form>');

$("#leftform").html('Trading Name: <input name="tradingname" id="tradingname" class="formbox"/><br/>'+
                    'Web URL: <input name="website" id="website" class="formbox"/><br/>'+
                    'Address: <input name="address" id="address" class="formbox"/><br/>'+
                    'Send Email: <select name="sendemail" id="sendemail" class="formbox stateselect"><option value="1">Yes</option><option value="0">No</option></select><br/>'+
                    'Which Email: <select name="whichemail" id="whichemail" class="formbox emailselect"></select><br/>'+
                    'Call Back: <select name="callback" id="callback" class="formbox stateselect"><option value="1">Yes</option><option value="0">No</option></select><br/>');

$("#rightform").html('Phone No: <input name="phonenumber" id="phonenumber" class="formbox"/><br/>'+
                    'Email: <input name="email" id="email" class="formbox"/><br/>'+
                    'State: <select name="state" id="state" class="formbox stateselect"></select><br/>'+
                    'Postcode: <input name="postcode" id="postcode" class="formbox"/><br/>'+
                    'Call Back Date: <select name="day" class="formbox dobselect"></select><select name="month" class="formbox dobselect"></select><select name="year" id="yyyy" class="formbox dobselect"></select><br/>'+
                    'Call Back Time: <select name="hh" class="formbox timeselect"></select>:<select name="mm" class="formbox timeselect"></select><select name="ampm" class="formbox timeselect"><option value="am">am</option><option value="am">pm</option></select><br/>');


$("#newbusinesslead").append('<button id="savenewbusinesslead" class="blackbutton menuwidth">Save</button>'+
                              '<button id="continuenewbusinesslead" class="blackbutton continuewidth right">Continue</button>');

yearselect();
dayselect();
monthselect();
stateselect();
timeselect("hh");
timeselect("mm");
sendwhichemail(1);

}
  • 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-05-25T03:32:33+00:00Added an answer on May 25, 2026 at 3:32 am

    I found the error – OOPS i had the form the same ID class as a click event. So it looked like the select was refreshing but the whole form was… OOPS

    TIP: Check that you have no click functions or same ID

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

Sidebar

Related Questions

I'm having an issue with jQuery validation not firing in IE8. All other browsers
I'm having an issue with the date input from jQuery Tools. When I click
I'm having an issue with two jQuery calls. The first is a load that
So I'm having a cross-browser JavaScript issue. I've got a <select> DOM element that
I'm having a workflow issue with my JQuery dialogs when trying to create the
I'm having an issue trying to NOT select a tablerow with the function: $(tr).click(function(e)
Hey all, having an issue getting asp buttons to interact with JQuery. I'm basically
I'm having an issue with autocomplete in jquery mobile. I want to create a
I am having an issue with Jquery Mobile and Jquery Jplayer conflicting with each
i am having issue with loading my selector via a jquery ajax load call

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.