Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

form without button submit

<form name="nameFORM" action="/heheh.php" method="post">
    <input type="hidden" name="BeforeBase" value="data">
	<input type="hidden" name="base" value="valuedata">
                            
</form>
<a href="#" onclick="submitBTN()" class="shadow-lg w-50  btn fw-bold border ">
<script>
function submitBTN() {
	document.nameFORM.submit();
}
</script>
Comment

how to create a form without a submit button javascript

//you have to have the form tag in this format 
<form id="myFunction" onClick= { myFunction } >
 <input type="file" name="fileToUpload" id="myFunction" />
</form>

//from there you would have to create a function 
function myFunction() { 
          document.getElementById("myFunction").submit(); 
        }
//if this does not work, start to pray lol and do a lot of digging in 
//the browser, good luck !
                                 
Comment

PREVIOUS NEXT
Code Example
Javascript :: addeventlistener js select item 
Javascript :: How to get input file using js 
Javascript :: ckeditor check if empty 
Javascript :: js for in 10 
Javascript :: jquery ajax on fail 
Javascript :: json file with multiple records 
Javascript :: how to install formik in react native 
Javascript :: ajax done 
Javascript :: box shadow in react native 
Javascript :: javascript credit card validation 
Javascript :: angular toaster 
Javascript :: serving html file using node.js 
Javascript :: string reverse javascript 
Javascript :: nextjs check production or development environment 
Javascript :: jquery empty 
Javascript :: how to change the text using jquery on click 
Javascript :: for open new tab we are using window.open but new tab are open in left side how to change the right side 
Javascript :: js set css variable 
Javascript :: jquery cdn in react 
Javascript :: remove comma from number javascript 
Javascript :: vuejs props declare prop with multiple types 
Javascript :: jquery find div with data attribute value 
Javascript :: how to delete a reply in discord.js 
Javascript :: ajax request in javascript 
Javascript :: how to get console text in cypress 
Javascript :: how to hide a input and label jquery 
Javascript :: filter nested object array and return whole object 
Javascript :: js addeventlistener 
Javascript :: npm chalk 
Javascript :: exponent in javascript 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =