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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:41:11+00:00 2026-05-22T21:41:11+00:00

I’m working on a PHP + HTML + jQuery project. And there are quite

  • 0

I’m working on a PHP + HTML + jQuery project. And there are quite some coding knowledge problem I faced during my way of coding – But I’m almost done with it! To get it done, I just need this last help (for this project for sure) to get done.

So, what I need is to RESET a form using jQuery after this:

1) I have a form that includes a and a to submit the form (not type=”submit”, since I’m using jQuery Ajax to submit the form)

2) I hit the button to make the form send and give back some information using a jQuery plugin etc.

3) I get the results in the same page as you might have understood. And using jQuery, I make a button that says RESET available, to reset everything I just did using Ajax.

4) The RESET button has to do the following code:

$('#remote-reset').live('click', function() // The reset button
{
    $('#remoted').slideUp('fast', function(){ $('#remoted').empty(); }); // the div that is seen after Ajax submitting the form
    $(this).hide(); // hide this button when I click it
    $('#remote-start').show(); // see the <input type="button" /> again
    $('#remote-urls').empty(); // empty the textarea
    $('#remote-upload').resetForm(); // reset the form using a jQuery plugin, doesn't work at all
});

5) I click the RESET button and it does all above, but it wont do the most important thing: It’s not making it possible to SEND a new form again with other information in the WITHOUT refreshing the page. $(‘#remote-start’).show(); would have to SEND the form again, but I simply click over it and nothing happens.

So, in short words: I send a form with information -> Get results -> Hit reset -> Form is all cleared -> Put in new information -> Hit Submit -> Nothing happens.

Why would this happen and what would be the solution? Ideas?

EDIT (Submit button code):

$('#remote-start').click(function()
{
    $('#loader1').show();
    $(this).hide(); 
    $('#remote-reset').show();
    $('#remote-upload').ajaxSubmit(
    {
         success: function(response)
         { 
            $('#remoted').html(response).hide().slideDown('fast');
            $('#loader1').fadeOut('normal');
         }
    });
});

HTML Code:

    <div id="remote" style="display: none;">
<form action="remote.php" method="post" id="remote-upload">
    <br /><br />
    <textarea name="remote-urls" id="remote-urls" rows="12"></textarea><br/>
    <input type="button" name="remote-start" id="remote-start" class="remote-button" value="Upload Images" />
    <input type="reset" id="remote-reset" class="remote-button" value="Reset" style="display: none;" />
    <br /><br />
    <span class="normal">
        Maximum <strong>20</strong> images.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>10 MB</strong> for one image.
    </span>
</form>
    <div id="remoted">
        <img id="loader1" src="css/images/loader.gif" style="display: none;" />
    </div>
</div>
  • 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-22T21:41:12+00:00Added an answer on May 22, 2026 at 9:41 pm

    Maybe you are resetting fields not supposed to be reseted – Like values in hidden inputs. It would really help out if you provide the html code.

    But if you want to have better control of the fields that you need to reset, you can do like this:

    $("input[type=text], textarea").val("")
    

    That would reset all input with type="text" and all textarea tags.

    edit

    Oh, and by the way. You need to use live, and not click if you are replacing the content where the element with id #remote-start is. Because, if you don’t the event won’t get triggered when re-submitting.

    Basically

    $('#remote-start').click(function()
    

    needs to be replaced with

    $('#remote-start').live('click', function()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I want use html5's new tag to play a wav file (currently only supported
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.