Hi Guys,
I was checking out a small code in Javascript which adds a javascript class object/JSON object in a
localstorage. The localstorage saves the array object and displays it in the bootstrap table/grid.
You need to have knowledge of JSON and object oriented programming in Javascript. However comments
have been added which can help you out.
Following is the HTML and Javascript content
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Enter Exam Details</title>
<!-- include Bootstrap CSS for layout -->
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-
combined.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>Add your past exam details</h1>
<form method="post" class="form-horizontal">
<fieldset>
<legend>Add Exams</legend>
<div class="control-group">
<label class="control-label" for="type">Type of enquiry</label>
<div class="controls">
<select name="type" id="type">
<option value="">Please select</option>
<option value="general">General</option>
<option value="sales">Sales</option>
<option value="support">Support</option>
</select>
</div>
</div>
I was checking out a small code in Javascript which adds a javascript class object/JSON object in a
localstorage. The localstorage saves the array object and displays it in the bootstrap table/grid.
You need to have knowledge of JSON and object oriented programming in Javascript. However comments
have been added which can help you out.
Following is the HTML and Javascript content
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Enter Exam Details</title>
<!-- include Bootstrap CSS for layout -->
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-
combined.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>Add your past exam details</h1>
<form method="post" class="form-horizontal">
<fieldset>
<legend>Add Exams</legend>
<div class="control-group">
<label class="control-label" for="type">Type of enquiry</label>
<div class="controls">
<select name="type" id="type">
<option value="">Please select</option>
<option value="general">General</option>
<option value="sales">Sales</option>
<option value="support">Support</option>
</select>
</div>
</div>