Operating System - Linux
1827969 Members
3215 Online
109973 Solutions
New Discussion

Can we put build a checkbox without FORM in HTML

 
SOLVED
Go to solution
Pankaj Yadav_1
Frequent Advisor

Can we put build a checkbox without FORM in HTML

Can we put build a checkbox without FORM in HTML?
3 REPLIES 3
Steve Lewis
Honored Contributor

Re: Can we put build a checkbox without FORM in HTML

Not easily no, but what's wrong with a FORM?
A FORM does not necessarily have to be submitted, you can say onSubmit=myfunc() to call a Javascript function when someone presses enter, or use onchange(), then you can do pretty much whatever you want, especially if you use AJAX.
See http://en.wikipedia.org/wiki/Ajax_(programming)



Frijo Franco
Advisor
Solution

Re: Can we put build a checkbox without FORM in HTML

I think we can put any control on the HTML without the FORM tag, but we will not be able to submit/capture data. If its not needed then whats the use of a checkbox??? so have a
tag with no action specified.




New Document
<meta name="Generator" content="EditPlus" />
<meta name="Author" content="" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />







Thanks
Frijo
Pankaj Yadav_1
Frequent Advisor

Re: Can we put build a checkbox without FORM in HTML

I got the solution.