Skip to content Skip to sidebar Skip to footer

Submit Button Not Working In Bootstrap Form

I have a form in Bootstrap 3 that's inside a modal. There's a button called 'submit' where when it's clicked the stuff that was entered in the form should be sent to an email addre

Solution 1:

Your problem is this

<button type="button" value=" Send"class="btn btn-success"type="submit"id="submit" />

You've set the type twice. Your browser is only accepting the first, which is "button".

<button type="submit" value=" Send"class="btn btn-success"id="submit" />

Solution 2:

Replace this

 <button type="button" value=" Send"class="btn btn-success"type="submit"id="submit">

with

<button  value=" Send"class="btn btn-success"type="submit"id="submit">

Solution 3:

  • If you put type=submit it is a Submit Button
  • if you put type=button it is just a button, It does not submit your form inputs.

and also you don't want to use both of these

Solution 4:

The .btn classes are designed for <button> , <a> or <input> elements (though some browsers may apply a slightly different rendering).

If you’re using .btn classes on elements that are used to trigger functionality ex. collapsing content, these links should be given a role="button" to adequately communicate their meaning to assistive technologies such as screen readers. I hope this help.

Post a Comment for "Submit Button Not Working In Bootstrap Form"