The following jquery script can use for get form input values
<script type=”text/javascript”>// <![CDATA[
//function to get form values
function getformValues() {
var fields = $(“:input”).serializeArray();
$(“#smarttips-div”).empty();
jQuery.each(fields, function(i, field){
$(“#smarttips-div”).append(field.value + ” “);
});
}
//call function to get form values
getformValues();
</script>