Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log
- ----------------------
- <input value="1" type="checkbox">
- TypeError: task.val is not a function
- var tasks = $('input:checked');
- function delete_tasks(index) {
- var task = tasks[index];
- console.log(task)
- console.log(task.val());
- ajax('http://localhost/projects/neo/task/delete/' + task.val())
- .done(function() {
- delete_tasks(++index);
- });
- }
- delete_tasks(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement