Hi ,
can any one give the difference between the below code. Since am a learner of jquery.
Other code:
thanks in advance
Hi ,
can any one give the difference between the below code. Since am a learner of jquery.
Other code:
thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Jun 23, 2022, 9:47 AM
You can practically analyze just by seeing the syntax.
That when you use button you can place any content between the
The content may be a span tag, an tag, an image anything you wish.
But this is not possible with input type button.
so, input type button is used when content is not required inside.
also, always remember that a button is always a submit button until you don't specify button type="button"
meaning
will always post your form.
but will not post the form untill you explicitly post the form using OnClick event with javascript/jquery.
Amit MohantyPosted Jun 23, 2022, 9:46 AM