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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:46:08+00:00 2026-05-19T17:46:08+00:00

My jQuery right now works perfectly when I use it to perform creation, and

  • 0

My jQuery right now works perfectly when I use it to perform creation, and deletion, of textboxes. But the code does not work properly when I decide to allow users to edit them after they submit and the same code upon modification does not work anymore.

My rules are such that there needs to be a minimum of 2 iterations boxes and 1 task in each iteration, anything less than that would cause the jQuery to disable my remove iteration and minus task button respectively.

Now my codes cannot seem to allow a user to reduce a task even though there is more than 1 task in the iteration and the remove iteration button is forever disabled, despite starting off with, say, 5 iterations.

I cannot remove the ‘disable’ at the beginning because a user may end up with zero task if he has only filled in one task, so I can only remove the ‘disable’ once the if-loop proves that there is more than the minimum required.

HERE is my jQuery code, can somebody please help and give some advice? :)) Thanks in advance!

PS: $('.plus') refers to my add task class button, $('.moins') refers to my minus task class button, $('#removeIteration') and $('#addIteration') both represent remove iteration and add iteration respectively.

  • 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-19T17:46:09+00:00Added an answer on May 19, 2026 at 5:46 pm

    Please give us some context on your problem (what is it exactly your code is supposed to do, and how is it doing it right now (a rough description of your approach is enough), and paste only the relevant code in your question. Right now it is not clear at all what you mean with iteration, as you do not explain what your iterations are supposed to be doing.

    –edit 1

    I see you have split up the question in paragraphs, very good. Please keep making it better by providing the context.

    –edit 2

    I see you use parent().parent().parent(). This is rather inflexible code. You should use .closest(‘query describing the parent you are looking for’).

    Instead of ‘return false;’ you should use ‘event.preventDefault();’ and edit the lines like

    $(".moins").live("click", function() {
    

    to

    $(".moins").live("click", function(event) {
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code right now to get the row value from jquery grid..
I have the following jquery code which doesn't work quite right when trying to
I have to post to a URL using PHP. right now it works but
Below is the code I'm using. Right now the tabs section works fine and
i am using jquery UI tabs. works great. i have right now 5 tabs
I am new to jquery and still learning. The code I have right now
Right now I'm getting this strange problem where when I use jQuery's animate() function
Bootstrap's popover works perfectly on my local machine but doesn't seem to work on
Right now I havae a menu, that I'm using jquery to do a fade
hello friends i m new to jQuery and nyro modal. right now i m

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.