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
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,713
  • 3
  • 22
  • 31
39
votes
10 answers

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

I would like to have a submit button that 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
  • 541
  • 3
  • 8
  • 11
35
votes
6 answers

How do I submit a "file" input without submit button using JavaScript?

There is a way to automatically submit a form without clicking to a "submit" button? I have a form with one "file" input. I would submit the form after the user have selected one file.
Pennywise83
  • 1,784
  • 5
  • 31
  • 44
34
votes
2 answers

Difference between button and input?

Are there any major differences between and Also, can you use ?
DarkLightA
  • 14,980
  • 18
  • 49
  • 57
33
votes
3 answers

form submit checkbox sets value to "on" rather than "true"

Hi I have an html form which I am submitting via the click event on a button. The event fires $("#myform").submit(); the problem is that there is a checkbox on the form and in firebug under the posted params it shows "mycheckbox1 on" rather then…
Raif
  • 8,641
  • 13
  • 45
  • 56
33
votes
3 answers

Submitting Assignment on Coursera ML in Octave

Programming assignment Week 3, Machine Learning, Andrew-ng, Coursera System: Ubuntu 16.04 Octave 4.0.0 Problem: Cannot submit the code to the server. This code was successfully submitted from Windows env. octave:1> submit == Submitting solutions |…
Muhriddin Ismoilov
  • 380
  • 1
  • 4
  • 11
33
votes
3 answers

Font awesome icon and text in input submit button?

I have a similar problem like here , i want to place font awesome icon into my submit button and also a text, it looks so: http://prntscr.com/608exx Content of my input submit value is Buy now   The icon is visible because i set on…
m_73
  • 569
  • 2
  • 5
  • 14
33
votes
5 answers

JQuery Autocomplete: Submit Form on selection?

Using JQuery Autocomplete on a traditional HTML form. Trying submit the form (the old-fashioned way) when a selection is made. But the input box gets filled out and then I have to make press "return" a 2nd time, or click the submit button. I've…
ILT
  • 341
  • 1
  • 3
  • 3
32
votes
2 answers

why doesn't hitting enter when a SELECT is focused submit the form?

Consider the following HTML:
If the focus is on the input (text box) and I hit enter, the form…
Marc Stober
  • 10,237
  • 3
  • 26
  • 31
32
votes
6 answers

Can I trigger a form submit from a controller?

I'd like to do a traditional form submit from within a controller. The scenario is that I want to hit a route on my web server and redirect to its response, which I can do with a regular form in HTML, but I also want to do some validation on its…
Mike Pateras
  • 14,715
  • 30
  • 97
  • 137
32
votes
4 answers

HTML input button css-height not working on Safari and Chrome

I have a very basic question. I am setting height to 50px for my html form submit button. It works on Firefox but not Chrome nor Safari. The code is as simple as following: Any idea how to…
Madeline
  • 1,039
  • 2
  • 11
  • 19
31
votes
8 answers

jquery disable submit button on form submission

For whatever reason, though this code does refresh the page, no fields get posted... $('form').submit(function(){ $('input[type=submit]', this).attr('disabled', 'disabled'); }); Is there a better way of coding this?
scarhand
  • 4,269
  • 23
  • 63
  • 92
31
votes
7 answers

Stripe not working with error 'Uncaught (in promise) Error: We could not retrieve data from the specified Element.'

I am trying to use Stripe.js following https://stripe.com/docs/stripe-js/elements/quickstart I made html, css, javascript just same as sample of that url. But when I click 'Submit Payment' Button, it always shows console error and not…
LarAng
  • 1,255
  • 3
  • 18
  • 28
31
votes
10 answers

Submit form on Enter key with javascript

I'm not sure what I am doing wrong here. I want the enter key to work as well as clicking the button.
Mauro Golin
  • 411
  • 1
  • 4
  • 4