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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:30:05+00:00 2026-05-27T14:30:05+00:00

the submit function is not working for me, what I have is not being

  • 0

the submit function is not working for me, what I have is not being alerted, please help, thanks.

<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div style="background-color:#e7e7e7;width:220px;padding:25px;">
    <strong style="font-size:15px;">Do you have a coupon?</strong>
    <p style="line-height:15.5px;margin-top:2px;text-align:justify;">If you have a coupon to upgrade to Premium membership, enter the coupon code  below and click upgrade.</p>
    <form id="redeem_coupon" action="javascript:void();" method="post">
        <input type="text" name="coupon_code" style="border:1px solid #828282;font-size:15px;width:215px;" />
        <input type="submit" value="Upgrade" class="button-input" style="margin-left:0;margin-top:5px;"/>
    </form>
</div>
<script type="text/javascript">
    $('#redeem_coupon').submit(function() {
        alert('hi');
        return false;
    }
</script>
  • 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-27T14:30:06+00:00Added an answer on May 27, 2026 at 2:30 pm

    Close your parentheses.

    $('#redeem_coupon').submit(function() {
        alert('hi');
        return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the javascript code im using. <script language=javascript type=text/javascript> function cancelevent() { input_box=confirm(Are
Please excuse my ignorance I am not very familiar with JavaScript and have been
I have a form with JavaScript validation. Upon there being an error, the submit
I have this jQuery simple code: <script type=text/javascript> <!-- jQuery(function(){ jQuery('#old_thumb').click(function(){ $(this).val($(this).attr('title')); $('#sf').val('2'); $('#add_new_event').submit();
i have the following javascript file named coupon.js - jQuery(document).ready(function(){ jQuery('.appnitro').submit( function() { $.ajax({
The following code does not submit the input values: $('.button').live('click', function() { var date
$('form').submit(function(){ this.action=http://www.sitename.com/post; return false; }); having altered the action attribute of the form ,i
I have a jQuery function tied to my submit button like this: $(function ()
I have nested ajax calls that are not working in ie7. They work fine
$('#post_form').submit(function() { $(#ajax_bar_loader).show(); $.ajax({ url: 'add.html', data: $('#post_form').serialize(), dataType: 'json', type: 'post', success: function(

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.