HTML
GitBook docs section concerning HTML context.
Dynamic Form
Forms with dynamic addition of new fields (and removal).
<div id="wrapper">
<div id="form">
<form method="post" action="action.php">
<table id="employee_table">
<tr>
<td><input type="text" name="name[]" placeholder="Enter Name"></td>
<td><input type="text" name="age[]" placeholder="Enter Age"></td>
<td><input type="text" name="job[]" placeholder="Enter Job"></td>
</tr>
</table>
<input type="button" value="ADD ROW" onclick="addRow()">
<input type="submit" value="submit_row" value="SUBMIT">
</form>
</div>
</div>function add_row()
{
rowno = $("#employee_table tr").length;
rowno = rowno + 1;
$("#employee_table tr:last").after("<tr id='row"+$rowno+"'><td><input type='text' name='name[]' placeholder='Enter Name'></td><td><input type='text' name='age[]' placeholder='Enter Age'></td><td><input type='text' name='job[] 'placeholder='Enter Job'></td><td><input type='button' value='DELETE' onclick=delete_row('row"+$rowno+"')></td></tr>");
}
function delete_row(rowno)
{
$('#' + rowno).remove();
}
Button Video Overlay
Simple video overlay with play icon.
Custom Cursor
Replace cursor pointer with custom svg.
Modal
Simple modal created from scratch.
For disabling events on background when modal is showing up, wrap it in a div ("overlay") with style like this:
HTML anchor with Map reference
To insert an anchor element with maps reference in HTML page use the code below. The same logic is reusable for mailto and tel.
HTML Accordion element
HTML Progress Bar element
Last updated