diff --git a/SRC/public/js/setListeOeuvre.js b/SRC/public/js/setListeOeuvre.js new file mode 100644 index 0000000..5f9a8c4 --- /dev/null +++ b/SRC/public/js/setListeOeuvre.js @@ -0,0 +1,20 @@ +$(document).ready( function() { + $('#enregistrer').click(function() { + event.preventDefault(); + send = {idListeOeuvre : " " , + idOeuvres : [1,2,3,4,4] } + url = "/setListOeuvres"; + $.post(url, + send, + function( data ) { + }) + .done(function() { + console.log( "success" ); + }) + .fail(function() { + console.log( "error" ); + }); + }); + +}); +