Javascript submit button with disable option, we'd like to add a reset option


We would like to amend a form submit button that we have. At the moment, when someone submits the form we disable the submit button.

We would like to keep this option, but then change the text on the button from 'Process orders' to 'Orders submitted'.

We would also like a second button next to the submit button called 'Reset option', clicking this would enable the submit button again and change the text again from 'Orders submitted' back to 'Process orders'. Then allow the user to be able to submit the form again.

It is similar to the second example on this webpage tutorial ( titled 2. More User-Friendly):

[login to view URL]

Our current code looks like this:



// form body here


<button type="submit" class="btn btn-primary" id="btn-process">Process orders</button>



// When they submit the form, we submit an AJAX request after disabling the button

$('#btn-process').on('click', function(e) {

if( confirm('Are you sure you wish to process the selected orders? Press OK to proceed.') )


e.$this.disabled=true;this.value='Sending, please wait...';setTimeout(() => { this.disabled=false; [login to view URL] = 'submit' },3000);[login to view URL]();

$(this).attr('disabled', true);


// more script to send off form fields



We would like some documented code that we could try out our side and check as not accessible from outside the company.

Many thanks


Evner: JavaScript, HTML

Om klienten:
( 8 bedømmelser ) Barnstaple, United Kingdom

Projekt ID: #33779782

Tildelt til:


Hi, there. I am a web engineer with 5+ years of experience in web and cross-platform development. Especially, I have vast experience in HTML, JavaScript. PHP, Python, Javascript, Typescript, Liquid, Java, Rust, Solidi Flere

£15 GBP på 1 dag
(0 bedømmelser)

30 freelancere byder i gennemsnit £24 timen for dette job


Hello May i add this Reset button via JS right away ? A pro coder -- Ranjit..............................

£28 GBP på 1 dag
(309 bedømmelser)

Hi there, - My name is Shail. I’ve read your brief and chcked your attached code, understand your requirement, I can easily do this job. I can implement the functionality to change text on the button from 'Process o Flere

£10 GBP på 1 dag
(179 bedømmelser)

hello , hope you are fine i have very good grip in ajax i can work for you on this , lets discuss that is my portfolio you can check https://www.freelancer.com/u/samair0

£40 GBP på 1 dag
(531 bedømmelser)

Hi Bob, I can do this job (javascript button job) . I have 18+ years of experience in website development . Get in touch with me for quick solutions. thanks

£20 GBP på 1 dag
(170 bedømmelser)

I will change button names on clicking with reset functionality surely asap. Give me chance to show you good result. Thanks........

£10 GBP på 1 dag
(85 bedømmelser)

Hello, I can add RESET option in form. Message me so that we can discuss more and then I will start working IMMEDIATELY. Thank you.

£20 GBP på 1 dag
(119 bedømmelser)

Hello, I have read the job description and it seems like you are looking for a developer who is fluent in JavaScript. I have an immense background in JavaScript and its ecosystem since I have finished my course of lea Flere

£20 GBP på 1 dag
(22 bedømmelser)

Hi There I Just read your project detail regarding the Javascript submit button with disable option, we'd like to add a reset option Can we do a quick chat right now so that we can discuss the project briefly? I have Flere

£15 GBP på 1 dag
(111 bedømmelser)

Hello I have read your requirements carefully and got a total understanding of the project .kindly discuss your project in detail with me. No fake commitment,100% quality work. I have more than 9 years of experience Flere

£50 GBP in 7 dage
(48 bedømmelser)

Hi, I have read the description of your project. I confirm you that I can do it in few minutes. I have done 200+ simillar type of tasks till now. If you hire me now, I can complete it immediately and then show you to a Flere

£15 GBP på 1 dag
(44 bedømmelser)

Good day, your post caught my eyes, and interested in working with you. Can start today! I’m a perfect fit for the job as I have expertise in HTML/CSS/JAVASCRIPT, etc. I have done some mind-blowing projects. You can Flere

£15 GBP in 7 dage
(21 bedømmelser)

Xin chào I checked "[login to view URL]" carefully and I am absolutely sure that I can execute the project very well. I am very interested in this project as it matches my skills. Flere

£15 GBP in 7 dage
(36 bedømmelser)

Javascript submit button with disable option, we'd like to add a reset option (Project doable. Message me for discussion) I specialize in Wordpress, Html, Node, Laravel, Shopify, Python, JAVA, PHP, and react. I can us Flere

£150 GBP på 1 dag
(8 bedømmelser)

Hello , I have seen your job requirements and I am sure that I can do your task efficiently in less timeline as we are a team of engineers of 3 people, each one has an experience of 5+ years we are specialized in web d Flere

£15 GBP på 1 dag
(5 bedømmelser)

Hi, Bob. I can do it. no problem. Already I am very strong at javascript, Look forward to working with you on this projec.t Thanks.

£50 GBP på 1 dag
(2 bedømmelser)

Hello there, I can help you we can start NOW! I'm a front end developer I have +2 years of experience You can see my portfolio from here. https://www.freelancer.com/u/aliAdelElroby I hope to deal with you, Goodluck.

£15 GBP på 1 dag
(6 bedømmelser)

I have more than 8 years of experience working with PHP, Prestashop, CodeIgniter, Laravel, Yii2, MySQL, PostgreSQL, API, HTML, Javascript, Node Js, Vue Js Css, Git, C#, Selenium, Puppeteer, TLV, QR Code, BarCode, SQL S Flere

£20 GBP på 1 dag
(9 bedømmelser)

Hi Bob, I will do this job quickly, need only your confirmation. Let's connect for more discussion. Thanks Amit

£12 GBP in 7 dage
(4 bedømmelser)

Hello, there. I just read your posting. It sounds like you need an expert in web developer to help you with HTML | JS. As you can see on my reviews, I have a good background in this. I can start to work right now and Flere

£20 GBP på 1 dag
(3 bedømmelser)

Hello sir My name is Umakant Yadav I will start work just now. I have 3 years' experience in core PHP, CodeIgniter and WordPress, webhosting, MySQL, Shopify, Presta shop SSL installation , DNS html5 Using jQuery , Aja Flere

£15 GBP in 2 dage
(2 bedømmelser)