Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get value of input submit

$("#submit_button").click(function() {
    var data = $("#my_form").serialize();
    data += data.length ? "&" : ""; // check if empty
    data += escape($(this).attr("name"))+"="+escape($(this).val());
    // ...
    return false;
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #input #submit
ADD COMMENT
Topic
Name
7+8 =