Ajax
Html part in view <form id="comment" method="post"> <h2>Enter Your Details</h2> <center><div id="result"></div></center> <div class="form_fld"> <label>Name</label> <input type="text" placeholder="Enter Your Full Name" name="name" required=""> </div> <div class="form_fld"> <label>Email ID</label> <input type="text" placeholder="Enter Email ID" name="email" required=""> </div> <div class="form_fld"> <label>Contact Number</label> <input type="text" placeholder="Enter Contact Number" name="contact" required=""> </div> <div class="form_fld"> <label>Developer</label> <select name="developer"> <option>Lotus</option> <option>Ekta</option>