

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Use HTML with jQuery to make a form
To make a form with HTML, we use the following −
<form action = "" method = "get"> Details:<br><br> Student Name<br><input type="name" name="sname"><br> Exam Date and Time<br><input type="datetime-local" name="datetime"><br> <input type="submit" value="Submit">
To make a form with jQuery and HTML, add input type text as −
$form.append('<input type="button" value="button">');
A better example would be −
$myform = $("<form></form>"); $myform.append('<input type="button" value="button">'); $('body').append($myform);
- Related Questions & Answers
- How to clear HTML form fields with jQuery?
- Make a <form> left-aligned with Bootstrap
- How to validate a form using jQuery?
- How to use FastClick with jQuery Mobile the right way in HTML?
- How to create a signup form with HTML and CSS?
- Enclose a text to make it blink with HTML.
- How to make graphics with a script in HTML?
- How to get and set form element values with jQuery?
- How to submit a form using jQuery click event?
- How to make a page redirect using jQuery?
- HTML Design Form
- How to specify which form element a calculation is bound to with HTML?
- Can I submit form with multiple submit buttons using jQuery?
- HTML form action and onsubmit validations with JavaScript?
- How to use multiple JavaScript libraries along with jQuery?
Advertisements