Hi ,
can any one give the difference between the below code. Since am a learner of jquery.
Code
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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Jun 23, 2022, 5:47 AM EDT
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 MohantyRank #112 · 20K reputationPosted Jun 23, 2022, 5:46 AM EDT