Change form action using jquery

Change form action using jquery

Added by Nasir Mahmood updated on Friday, November 17, 2017

Problem:

Previously while working on Online Sqlite Management studio, I need to use same form data against multiple actions. From server side on can not do that so solution was to use client side and jquery is our friend to handle such problems?

Following is small snippet for this problem

$('#button_id').on('click', function () {
    $('#form_id').attr("action", "Actionname");
    $('#form_id').submit();
});				
				

Related Tags

About

29 Tutorials
25 Snippets
6 Products

More

Contact Us

Contact us

Stay Connected