javascript - Is this the correct way to submit data with multiple submission types on the same page asp.net mvc5 -


so have rather large form on 1 page, inside form have 4 different submission types. without explaining more each form rough idea.
1: submit whole form (creates record top , bot half)
2: update record of top half
3: create record bottom half
4: update record of bottom half
have set 1 submit button, 2, 3, 4 ajax calls, data use jquery like:

$model = {     'property1': $('#field1').val(),     'property2': $('#field2').val(), } 

then send ajax call. im sure not since im hardly validating it, know better way handle this?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -