HTML button don't submit [closed] - html

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have this HTML code in a JSP page, but when I click it does not do anything
<button class="btn btn-grey" type="submit">Save device</button>

Hello Amadeu Cabanilles,
You have to put your button into form.
<form class="form-horizontal" method="post" modelAttribute="modelName" action="/submitSomeWhere">
<button type="submit" class="btn-lg btn-primary pull- right">Update</button>
</form>

Do you have proper form tags in your html , correct form post should be :
<form id="createMarkerForm"
method="post"
accept-charset="utf-8"
action="servletUrl">

Related

How insert product multiple image by laravel? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
here is my html code form code.
<div class="form-group">
<label >Product Image</label>
<input type="file" class="form-control btn btn-primary" name="image[]" multiple="multiple">
</div>
you can use like this in your laravel controller file
in controller
$productSubImages = $request->file('sub_image');
foreach($productSubImages as $productSubImage){
$subImageName =$productSubImage->getClientOriginalName();
$subImageDirectory = 'product-sub-images/';
$productSubImage->move($subImageDirectory,$subImageName);
$subImageUrl =$subImageDirectory.$subImageName;
$subImage = new SubImage();
$subImage->product_id = $productId;
$subImage->sub_image = $subImageUrl;
$subImage->save();
}

Put button in div class="g-recaptcha" [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Is it possible to put some buttons on the right from g-recaptcha? for example like this:
I've just added to your code;
<div class="g-recaptcha" data-sitekey="6LcnqWUUAAAAAEc8mxt6aE1GIvasVmPqfy-cgYFK"</div>
<button class="added">Oooh look, a button!</button>
<button name="add" type="submit" id="napBUT" name="btn" class="btn btn-danger btn form-control">send</button>
Apply width:304px;float:leftto .g-recaptcha and width:calc(100% - 304px);margin-top:0; to .added

is there any alternated method for anchor tag?(Deleted) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
This is my sample html page where i'm using anchor tag inside but i need any alternate method instead of anchor tag,could anybody tell me.
<body>
<table><tr><td>
<a href="http://www.w3schools.com">Visit W3Schools.com!
<div></div>
</a>
</td></tr>
</table>
</body>
Thanks for your help.
Maybe you could use:
<form method="GET" action="foo.html">
<input type="submit" />
</form>
The difference between those two methods: <form method="link" > or <a>? What's the difference?

What function does a submit button call? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to create my custom submit button. So I need to know what javascript function does the input type submit button call? I don't want a css customized submit button if possible.
In Case your HTML Looks like this:
<form id="myform" name="myform" action="destination.html">
<input id="sub_Button" type="button" value="clickme" onclick="mySubmitFunction();" />
</form>
Do you mean JavaScript?
document.myform.submit();
Or JQuery?
$("#myform").submit();

How to make a button responsive? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am using bootstrap .
Can anyone tell me how to make a button responsive ?
<input type="submit" class="btn btn-primary" value="Forgot Password" />
Responsive" is just a meaningless buzzword. What exactly do you want
the button to do? What do you want it to "respond" to? – Rocket Hazmat
User RocketHazmat is close to what i would yell the hell out in you ears. The button is already in a context of responDING in a fluid html frame
You want to make your button adapt to width of container ? Just give it the class needed.
<input type="submit" class="btn btn-block btn-primary" value="Forgot Password" />
or
<input type="submit" class="btn btn-primary" value="Forgot Password" style="width:100%" />
See this : http://twitter.github.io/bootstrap/base-css.html#buttons