What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-07 00:25:02
ajax laravel get values from form
<script> var form = $('#postAddProject'); var button = $('#project-button'); var name = $('#name'); var link = $('#link'); var image = $('#image'); var token = $('input[name=_token]'); var message = $('#message'); var name_error = $('#name-error');... Add solution -
Javascript 2021-09-06 07:32:01
promises and not callbacks
var Button = function(content) { this.content = content;};Button.prototype.click = function() { console.log(this.content + ' clicked');}var myButton = new Button('OK');myButton.click();var looseClick = myButton.click;looseClick(); // not bound, 'this' ... Add solution
Best helpers
Ranking is empty