I created a table using datatables and added a “More” button which triggers a mini-dropdown. This button and its dropdown content show perfectly, however, when I tried to distinctively show that the button is active anytime it is clicked using jQuery’s addClass() or toggleClass() functions, …
Get all cheched ckexbox and set it to hiden input
I have 5 html checkboxes, but every time they have different value, I want when everytime when i check or uncheck checkbox to call this js function to get all checked chexbox and add it to hiden input This is my html And this is my js JS dont save in hidden input all checked checkbox any idea? Answer HereR…
table won’t allow me to append more than 2 cells
im trying to append the cells into the table with their data but the table won’t allow me to do it and I need to write it like this because im trying to access specific objects of the json array. any help im new to JAVASCRIPT AND JSON Answer Please stop adding row and cells with createElement() method&#…
Problems using values after axios
I am sorry if this problem is already solved somewhere but I can’t wrap my head around what my problem is. In my scenario I want to make 2 axios calls and do some stuff with the two data responses before the page is finally rendered. If I output the data in my template it is visible but when I
addEventListener stops after the first execution
I’m running into an issue with my current JS project. It’s a simple library where the user inputs the info and spits it out onto the page. I have a delete button that I add to each new div, which I’ve added event listeners to the buttons. When I click delete, it will delete the first one …
MongoDB/Mongoose – Find all where a specific Date is in a Date Range
for example I have documents with this field: and I want to get all documents where a specific date (like today) is in the date range. Is it possible to make such a query? For example if I search for 18th April, then I get that document. I thought something like this: But this doesn’t work… I get …
How can I avoid Array-callback-return error in my code
I want to filter through a list of items and display the items according to my filtered term. My list of items I have a input element that is a search field The search field has an onchange handler I am rendering the list items using .map helper method My state objects are as follows I want the ability to
Weird error in react – using apollo/client – graphql
I’m developing a MERNG App, and everything is working fine so far, but i’m getting some errors in the fronted with useMutations, let me explain to you. So, in the login/register part, if you leave fields empty or in the login, if your user is not found in the DB, it’ll give errors, and i rec…
Bootstrap 5: Error when showing dropdown via JavaScript
I’m trying to show a dropdown via JS. Unfortunately it seems like there’s a bug in Bootstrap 5. In this example code, showing the modal works, but showing the dropdown throws an exception: Uncaught TypeError: Cannot read property ‘classList’ of undefined at _e.show (dropdown.js:140) Am…
trigger watch function in Vue 3 composition Api
I have set this reactive value inside the setup const refValue = ref(‘foo’); and set a watch function to it the watch function gets not activated if I manually change the value, it gets only activated if a add a function which changes the value why does watch only gets triggered when using a funct…