Skip to content

Category: Questions

Why is my .empty() not emptying the parent element?

I cannot get the jQuery empty method to work on my appended HTML elements. It’s quite a simple problem seemingly, but it has me beat. I’ve tried moving the empty method around in the code but I still cannot get it to empty. Edit: It will not let me edit this unless there is more text so here is so…

Initialize js function on the page

I have a js file where there is a function with multiple parameters And I want to use this function on different pages, but with slightly different parameters, let’s say for one of the pages there will be The question is, how do I call this initialization function on the page itself? The usual page for …

How to get catch error 404 error in Axios?

I have this snippet of code (part of a function), notice the “BadURL” at the end of the URL: import axios from “axios”; But canno’t get into the catch block, says: I can catch the error only if i wrap the function call itself outside the class Answer Axios.post(…) is an asy…

Adding the column name in the table and links in vue

I am beginner web developer. I make my first crud in Laravel 8 and Vue. I use this component t in my project: https://www.npmjs.com/package/vuejs-datatable I have this code: DataTable.vue: Notes.vue: This code work fine. I have 2 problems: I would like the column headers in the table to be taken from: headers…