<form class="s_form">
<input class="s_text nameinp sinp" type="text" name="name" placeholder="Ваше имя*">
<input class="s_text phoneinp sinp" type="text" name="phone" placeholder="Ваш телефон*">
<input class="s_submit" type="button" value="Отправить">
</form>
$.fn.serializeObject = function()
{
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name] !== undefined) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(this.value || '');
} else {
o[this.name] = this.value || '';
}
});
return o;
};
var fieldValue = $('input[name="name"]').val();