$(document).ready(function () {



        $('#feedback').validate(

        {

        rules: {

			fname: "required",

            mobile: {

            required: true,

            allownumdash: true

            },

			email: {

				required: true,

				allowemail: true

			},

			city:"required",

			income:"required",

			nationality:"required",

			dateob:"required",

			accept:"required"

            },

            messages: {

				fname: "Please enter your first name",

                mobile: {

                    required: "Enter mobile number",

                    allownumdash: "Only numbers, plus and dash allowed"

                },

				email: {

					required: "Enter mobile number",

                    allowemail: "Enter valid email"

				},

                city: "Please select city",

                income: "Please enter income",

                nationality: "Please enter your nationality",

				dateob:"Please enter date of birth"

            },



errorPlacement: function ($error, $element) {

            var name = $element.attr("name");

            $("#error" + name).append($error);

        },

            

            submitHandler: function (form) {

            if ($("#feedback").valid()) {

             $("#formSub").attr("disabled","1"); 

             form.submit();

          

            }

            }

        });

}

);