
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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);
Advertisements