I tried to check the presentation form with mouse clicks, but the form does not seem to be sent with javascript using vanilla.
I use this simple markup and code:
<form name="form" id="price" action="" method="post"> <div class="category" name="price" value="50 dollars" onClick="this.form.submit();" >price</div> </form> <?php echo $_POST['price']; ?>
I can submit the form using jQuery, but I donโt understand why this.form.submit() does not work with javascript in vanilla? I use Chrome to verify this.
source share