Value of All Input Box

by lokointhehouse2

HTML

<form id="form">
First Name :  <input name="fname">
Last Name  :  <input name="lname">
Address :     <input name="address">
Contact No. : <input name="contact">
Country:      <input name="country">
City:         <input name="city">
</form>
<button type="button" id="btn-ser1">Serialize</button>
<script>
$("#btn-ser1").click(function(){
      data_array = $("#form").serialize();
      alert(data_array);
});
</script>