@section scripts {
<script>
$(function() {
$('.toggle').change(function() {
var self = $(this);
var url = self.data('url');
var id = self.attr('id');
var value = self.prop('checked');
$.ajax({
url: url,
data: { id: id },
type: 'POST',
success: function(response) {
alert(response);
}
});
});
});
</script>
}
Code Example |
---|
Csharp :: polling data source c# using threads |
Csharp :: convert foreach to linq c# |
Csharp :: C# program to find the longest Palindrome in a string. |
Csharp :: git set origin |
Html :: opem link in new tab html |
Html :: open markdown link in new tab |
Html :: ssss |
Html :: enter key vue |
Html :: copyright footer html code |
Html :: only accept image file input |
Html :: fontawesome phone icon |
Html :: ionic ion-title center |
Html :: html entity double quote |
Html :: html character tab |
Html :: html video autoplay IPHONE |
Html :: python get html from url |
Html :: lorem ipsum |
Html :: youtube autoplay video |
Html :: bootstrap modal fullscreen |
Html :: link to call a phone number |
Html :: font awesome cdn |
Html :: commenting in html |
Html :: table with border in html |
Html :: table border color in html |
Html :: html tabulation |
Html :: dropdown menu default value |
Html :: og html |
Html :: how to change background image in html |
Html :: input with dropdown |
Html :: laravel murakkab old |