Skip to content

Tag: javascript

get the data from the datatable on click

How to get the data object on click the cell.I have created the table and used datatable.I want to get the geography and customer type from the cell click I have tried as my table id is table and I got the response as below in console for console.log(data1); Answer If you add a click event on td and click

Cannot enter array values into graph

I am using Rgraph to general a line chart. I am trying to enter values into the chart with Javascript. here is the routine.. if I use the data as used all is fine. But if I use dta then I do get get a result. Answer After adding my previous comment I’ve been playing with this and you can

switch statement not working in javascript

I am experiencing an issue where a javascript function, is getting a var selectedMonth which is a string, and the alert dialog is showing the value of the string but for some reason the switch statement is not working. I am experiencing this issue on page load, it does work with <select> onchange listen…

Trying to implement isRepdigit() Algorithm in JS

I am pretty new to the Javascript environment. I think one of the most important ways, in order to be good at it, is practice. So I am trying to create a kind of algorithm that detects the number if it has repeated digits. The algorithm I trying to create should work like below, Turn the number into a string

Embed React Pages Discord Js

i made a bot Help command list by saying ” 911 ” in chat . It gives u an embed with the commands and 3 react buttons “forward” “backward” “delete” . It works as intended but idk why I can only use the reaction buttons once . For example : i am on page 1 , i pres…