Questions tagged [submit]

Refers to the action of sending data to a specific destination.

Examples include HTML form submission and the jQuery submit function.

5297 questions
52
votes
10 answers

jQuery AJAX form submits twice

I've got a form that I'm capturing via jQuery and sending via AJAX. My problem is that the form submits more than once every time I refresh the page. I've tried to unbind the submit button but then the form is posted normally after the first submit.…
James Privett
  • 1,079
  • 3
  • 15
  • 23
50
votes
11 answers

jQuery detect click on disabled submit button

Fiddle: http://jsfiddle.net/ugzux/ As you can see, I have a form with a disabled (via javascript) submit button. I want to be able to bind a click event to it anyway, so I can do some jazzy indication of what needs to be fixed on the input before…
totallyNotLizards
  • 8,489
  • 9
  • 51
  • 85
50
votes
3 answers

Property 'submit' of object # is not a function

Can anyone explain to me what this error means? I would appreciate it a lot for any kindof help with this.
The Jquery code I'm using for it is this. $('#form').submit();
Andrew Allen West
  • 734
  • 2
  • 7
  • 14
49
votes
8 answers

Is there a better jQuery solution to this.form.submit();?

I want to trigger the submit event of the form the current element is in. A method I know works sometimes is: this.form.submit(); I'm wondering if there is a better solution, possibly using jQuery, as I'm not 100% sure method works in every…
Darryl Hein
  • 142,451
  • 95
  • 218
  • 261
49
votes
9 answers

spark submit add multiple jars in classpath

I am trying to run a spark program where i have multiple jar files, if I had only one jar I am not able run. I want to add both the jar files which are in same location. I have tried the below but it shows a dependency error spark-submit \ --class…
Avinash Nishanth S
  • 514
  • 1
  • 5
  • 15
49
votes
4 answers

How do I use two submit buttons, and differentiate between which one was used to submit the form?

Currently, I have an HTML form where the user will enter a title and text for an article. When it is time to submit, they are presented with two buttons. One is to 'save' their article without publishing it, and the other is to 'publish' the article…
fvgs
  • 21,412
  • 9
  • 33
  • 48
48
votes
3 answers

Add regular button inside form that does not perform a submit

I have this form declaration:
48
votes
9 answers

Form not submitting when pressing enter

I have the following HTML/JS/jQuery Code. This code represents a login form that is presented modally to the user to allow them to login. The problem is, when I hit enter, the form does not seem to execute the "onsubmit" event. When I click the…
Dutchie432
  • 28,798
  • 20
  • 92
  • 109
48
votes
13 answers

Disable submit button ONLY after submit

I have the following HTML and jquery:

Test disabling submit button for 1 minute...


Dev P
  • 1,157
  • 5
  • 32
  • 54
47
votes
4 answers

If an HTML form has two buttons, how do I know which got clicked?

Suppose I have the following HTML form: ... How do I know which button the user clicked (without using javascript)? I…
bodacydo
  • 75,521
  • 93
  • 229
  • 319
47
votes
11 answers

PHP form - on submit stay on same page

I have a PHP form that is located on file contact.html. The form is processed from file processForm.php. When a user fills out the form and clicks on submit, processForm.php sends the email and direct the user to - processForm.php with a message on…
mewebs
  • 535
  • 2
  • 5
  • 11
45
votes
7 answers

Set a form's action attribute when submitting?

How do I change a form's action attribute right after clicking the submit button?
dave
  • 14,991
  • 26
  • 76
  • 110
43
votes
7 answers

ERROR ITMS-4088 - Does not have permission to modify the application

Ok, so I am trying to submit an app for a client of ours. They have invited me to their developer program as 'Admin' and we created all of the certs, provisioning profiles, and distribution profiles. I am able to select their account when submitting…
DrRocker
  • 655
  • 1
  • 7
  • 14
41
votes
6 answers

How do I make a "div" button submit the form its sitting in?

I have ASP.Net code generating my button's HTML for me using divs to get it to look and behave how I want. This question is regarding the HTML produced by the ASP.Net code. A standard button is easy, just set the onClick event of the div to change…
Jimbo
  • 22,379
  • 42
  • 117
  • 159
40
votes
7 answers

Jquery submit form

How can I submit a specific form using the follow code (example the id of my form is #form1). $(".nextbutton").click(function() { submit; });
user342391
  • 7,569
  • 23
  • 66
  • 88