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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:36:34+00:00 2026-06-06T05:36:34+00:00

I have a drop down menu, that a user selects a criteria from, based

  • 0

I have a drop down menu, that a user selects a criteria from, based on the criteria a form gets built.

What I am trying to do now is make sure they cannot build the same for twice, so for example, if the users selects appearance from a dropdown, I do not want them to be able to select appearance from the dropdown, while that form is built.

Does that make sense? Currently here is my code,

$('img.toggleadd').live({
    click: function() {
        var rowCount = $("#advanced_search > table > tbody > tr").length;

        f(rowCount < 3) {
            $.ajax({
                url: site_url + 'ajax/row/empty',
                success: function(data) {
                    console.log($(this));
                    $('#advanced_search table').append(data);
                }
            });
        }
    }
});

and the PHP

public function row($name) {
    if ($this->input->is_ajax_request()) {
        return $this->load->view('search/rows/'.$name);
    }
}

$name relates to the name of a view which contains the corresponding form elements for the selected 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-06T05:36:36+00:00Added an answer on June 6, 2026 at 5:36 am

    As Jared mentioned, the solution could be something as simple as a boolean value indicating whether or not a request is in progress…

    Take this code for example –

    var request_in_progress = false;
    
    $("#selector").on('change',function(){
      if (!request_in_progress){
        request_in_progress = true;
        $.ajax('/path_to_ajax_module.php',{'data':data},function(response){
          // handle the AJAX response
          request_in_progress = false;    // AJAX request complete.      
        },'json');
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a drop down menu that the user can select a location from.
I have built a drop-down menu here http://dev.driz.co.uk/jsonmenu/ that uses JSON to dynamically build
I want to have a drop down menu where a user can select from
I am trying to grab data a user selected from a drop down menu.
I have a drop down menu that looks great when the page it scrolled
So, I have an animated drop down menu that slides down when your mouse
I have a drop down menu made with Jquery. Right now, if you hover
I have a drop down menu that looks like this: It works fine, but
I have result that I want to display as a drop down menu. The
I have a select drop-down that selects a theme for the current page 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.