JohnsonPrag
JohnsonPrag

Reputation: 13

<a> tag to act like a button on form without JS

How can i make this tag to act like a type="submit" without JS?

Or, if is possible, to make this a button without losing style.

<form id='selectLangForm' action='' method='POST'>
                      <a class="dropdown-item d-flex align-items-center" href="HOW TO ACT LIKE A SUBMIT OF FORM?">
                        <div class="mr-3">
                          <div class="icon-circle bg-primary">
                            <i class="fas fa-file-alt text-white"></i>
                          </div>
                        </div>
                        <div>
                          <span class="font-weight-bold"><?php echo ucfirst(pathinfo('content/LANG/'.$entry, PATHINFO_FILENAME)); ?></span>
                        </div>
                      </a>
                    </form>

Upvotes: 0

Views: 27

Answers (1)

KValium
KValium

Reputation: 119

Have you tried using "Submit" input type?

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/submit

Upvotes: 1

Related Questions