Questions tagged [submit]

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

Examples include HTML form submission and the jQuery submit function.

5127 questions
48
votes
11 answers

Submit form using tag

I am trying to submit a form through onclick event on tag. I have tried triggering document.myform.submit(), this.form.submit(), parentNode.submit() etc. but none of this is working! Using a submit button, the code works fine. But I want to use …
Potheek
  • 921
  • 1
  • 7
  • 17
47
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
  • 134,677
  • 87
  • 206
  • 257
46
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
  • 63,809
  • 83
  • 206
  • 303
45
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
  • 17,126
  • 8
  • 29
  • 46
44
votes
10 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
  • 7,979
  • 8
  • 46
  • 83
44
votes
6 answers

React - clearing an input value after form submit

I'm presented with a rather silly problem. I am in the process of creating my first React application and I have encountered a little issue, where I am not able to clear my input value, after I submit a form. A tried googling this problem, found…
TommyVee
  • 509
  • 1
  • 5
  • 12
44
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
  • 464
  • 1
  • 4
  • 14
44
votes
9 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
  • 505
  • 2
  • 5
  • 11
43
votes
8 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
  • 645
  • 7
  • 13
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
  • 6,587
  • 23
  • 60
  • 88
39
votes
3 answers

Add regular button inside form that does not perform a submit

I have this form declaration:
39
votes
5 answers

differences between ng-submit and ng-click

In angularjs I'm wondering what the differences are between ng-submit and ng-click? Specifically, pros and cons of each and when should you one or the other? Thanks! **EDIT** I've looked in to this a bit more but I'm still wondering what (if any)…
MrMadsen
  • 2,035
  • 1
  • 20
  • 28
38
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
  • 20,449
  • 37
  • 111
  • 151
37
votes
10 answers

HTML: How to make a submit button with text + image in it?

I would like to have a submit button which contains text and an image. Is this possible? I can get the exact look I want with code that looks like: ... but I haven't…
David
  • 511
  • 3
  • 8
  • 11
36
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
  • 12,827
  • 23
  • 66
  • 104