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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:48:06+00:00 2026-06-14T17:48:06+00:00

This is the form declaration: <form id=form1 method=post onsubmit=this.action=’/mis_apps/scholarships-syste’+’m/index.cfm/scholarships/edit’;> This my javascript: $(#form1).attr(action, /mis_apps/scholarships-syste’+’m/index.cfm/scholarships/test);

  • 0

This is the form declaration:

      <form id="form1" method="post" onsubmit="this.action='/mis_apps/scholarships-syste'+'m/index.cfm/scholarships/edit';">

This my javascript:

     $("#form1").attr("action", "/mis_apps/scholarships-syste'+'m/index.cfm/scholarships/test");
     alert($("#form1").attr("action"));
     $("#form1").unbind("submit").submit();

The alert correct displays the new action. But when submit is ran, it still goes to the original code in the onsubmit.

I also tried:

    $("#form1").unbind("submit");
    $("#form1").submit();

But it still doesn’t work.

Thank you.

  • 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-14T17:48:07+00:00Added an answer on June 14, 2026 at 5:48 pm

    .unbind will remove only jQuery attached event handlers.

    Try this,

    $('#form1').removeAttr('onsubmit')
    $('#form1').submit();
    

    You can test it here, http://jsfiddle.net/k5Tnh/3/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this form declaration: <form method=post action=/web_services/buscar_vuelos?method=get> <div id=addSegment_wrapper> <button class=ui-button ui-widget ui-state-default
I want to make this form: echo '<form method=post action=ratinghandler.php style=width: 250px> <input type=hidden
Here is my form declaration <form enctype=text/plain method=post action=PI_Application_Submission.php> Here is my input: <tr><td>Requested
I have this html: <form id=REVIEW method=post action=/SortReviews> <fieldset class=sort> <input type=submit value=$ratingLine/> </fieldset>
I have a form declaration in my Razor view <form method=post action=/Lot/LotList?auctionEventId=@auctionEventId id=filterForm> (Incidentally,
I've got a form that looks like this: <form method=post> {% csrf_token %} <table>
I have this form: <%= form_tag posts_path, :method => :get, :class => search_nav do
<div></div> <div></div> <div></div> <div></div> <ul> <form id=the_main_form method=post> <li> <div></div> <div> <h2> <a onclick=xyz;
//method declaration [AcceptVerbs(HttpVerbs.Post)] public ActionResult Step2_UpdateCart(bool? isNextStepClicked) //one of many of the view's fields
This form has a NotifyIcon object. When the user clicks on the Close button,

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.