In the below html i want to read all the input elements of the form and get the custom field and the selected values or the input entered,how to do this?
function create()
{
$("form").each(function(){
var elements = $(this).find(':input');
for(var ele in elements)
{
console.log("++++++++++++")
console.log(ele)
console.log("++++++++++++")
}
}
}
<form name="UserForm">
<input type="text" name="name1" readonly class="form-control" custom="input"/>
<select name="iType" id="iType" custom="SelectList">
<option value="3" selected>school</option>
</select>
<select multiple id="multi" id="multi" custom="multiselect">
<option value="1"> 1</option>
<option value="2"> 2</option>
<option value="3"> 3</option>
</select>
<input type="checkbox" value="1" custom="checkbox" />
<input type="radio" value="1" custom ="radio" />
</form>