I have a one input type and button, which are used to enter username into the SQL database via ajax.
Now I want to achieve the validation that checks the duplicate names. If duplicate exists an error message will be shown, any help regarding this
<div id="Div1">
<label>FormName</label>
<input type="text" id="Text1" placeholder="Type form name here" class="form-control" />
</div>
<div id="Div2" style="float: right;">
<input type="button" id="Button2" class="btn btn-default" style="" value="Save Form" />
<input type="button" id="Button3" class="btn btn-success" style="" value="Add Section" />
</div>