Why don’t you use an <input>
or <button>
element and just tweak it with CSS? Then it works without Javascript and is therefore more reliable.
Related Contents:
- JavaScript code to stop form submission
- Clearing using jQuery
- HTML5 form required attribute. Set custom validation message?
- Submit form without page reloading
- Best way to track onchange as-you-type in input type=”text”?
- JavaScript Form Submit – Confirm or Cancel Submission Dialog Box
- How to send a JSON object using html form data
- Why does forms with single input field submit upon pressing enter key in input
- How do I cancel form submission in submit button onclick event?
- Disable form auto submit on button click
- Best Practice: Access form elements by HTML id or name attribute?
- How to submit a form with JavaScript by clicking a link?
- How to submit an HTML form without redirection
- HTML input file selection event not firing upon selecting the same file
- How can I set the form action through JavaScript?
- How to avoid the need for ctrl-click in a multi-select box using Javascript?
- Prevent form redirect OR refresh on submit?
- Intercept a form submit in JavaScript and prevent normal submission
- Understanding HTML Form Element behavior
- How to get number of rows in using JavaScript?
- HTML input type=file, get the image before submitting the form
- Drop-down box dependent on the option selected in another drop-down box
- Want HTML form submit to do nothing
- How to use JavaScript to change the form action [duplicate]
- How to ensure a form field is submitted when it is disabled?
- Trigger standard HTML5 validation (form) without using submit button?
- Stop an input field in a form from being submitted
- passing form data to another HTML page
- How to prevent submitting the HTML form’s input field value if it empty
- Change value of input and submit form in JavaScript
- Decoding URL parameters with JavaScript
- How to Call a JS function using OnClick event [duplicate]
- How do you limit options selected in a html select box?
- Best JavaScript solution for client-side form validation and interaction? [closed]
- Dynamically creating a specific number of input form elements
- Trigger standard HTML validation (form) without using submit button? [duplicate]
- Set the default value of an input field
- Change the content of a div based on selection from dropdown menu
- HTML/JavaScript: Simple form validation on submit
- Appending form input value to action url as path
- jQuery Change event on an element – any way to retain previous value?
- Disable scrolling on “
- Check if input is number or letter javascript
- HTML form with two submit buttons and two “target” attributes
- a way to check validity of HTML5 forms?
- Getting an option text/value with JavaScript
- HTML form input tag name element array with JavaScript
- submit event does not fire if submit initiated programmatically
- Angular form validation ng-disabled not working
- How to create dynamically