Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

getIdfrommodelOnClickAjax

      <input type="submit" value="Update Status" class="ids" data-id="@sheet.ID" onClick="UpdateStatus(@sheet.ID)" />
        
      <script>
      function UpdateStatus(string id) {
      $.ajax({
        type: "POST",
        url: "/UpdateStatus",
        contentType: "application/json; charset=utf-8",
        data: {"id": id},
        dataType: "json",
        success: function() { alert('Success'); },
        error: function() { alert('Error'); }
       });
       }
      </script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: get a list of field name from object javascript 
Javascript :: npm package al dar una direccion se obtienen las coordenadas longitud y latitud 
Javascript :: how to rmeove white space in a string with jquery 
Javascript :: custom render contenful rich text rendering 
Javascript :: The behavior that Selection.addRange() merges existing Range and the specified Range was removed. 
Javascript :: rails + vue js projcet demo 
Javascript :: Remove the warning for setState on unmounted components in React 
Javascript :: form validation jflutter 
Javascript :: geojson polygon mongoose 
Javascript :: ternary operator return date greeting 
Javascript :: how to mask credit card number in javascript 
Javascript :: sentry reports too much recursion 
Javascript :: convert string or string array to object mongoose object id 
Javascript :: ubicar escrol en el final js 
Javascript :: firebase iterate object 
Javascript :: Script test to be oneOf 
Javascript :: omise library 
Javascript :: js convert charcode to char 
Javascript :: js variable delete during loading page 
Javascript :: Mapping an Array to Elements with v-for 
Javascript :: isag680@hotmail.com 
Javascript :: how to signup users without login in firebase js 
Javascript :: disable click extra collapse antd 
Javascript :: three.js first issue resolved awwwards merge webgl html worlds 
Javascript :: minus converter 
Javascript :: remove post via ajax 
Javascript :: reactrouter 
Javascript :: delete head array js 
Javascript :: seperate array by comma in vue 
Javascript :: javascript find in array cannot read property of undefined 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =