Add inline javascript with ajax
Add inline javascript with ajax $ . ajax ({ headers: { 'X-CSRF-TOKEN' : $ ( 'meta[name="csrf-token"]' ). attr ( 'content' ) }, type: 'GET' , url: your_url , data: '' , datatype : 'script' , success : function ( data ) { existingscript = document . getElementById ( "newscript" ); //remove existing script if exists i...