I have a variable x that is written on the screen with initial value 0;
I want each click of a button (be input or button same) in the HTML file, the value of that variable to be added 1;
When added, I want the variable...
I am ordering a related json in notes in undescore.js
{8.0 , 8,5 , 5,5 }
var asc = _.sortBy(oper, function(num) {
return num.nota;
});
8.8
6.0
5.5
10.0
0.0
How do I make him unde...
I'm trying to use the GCD library function BigINT.js . But I do not know how, I try to use raw numbers, but it returns 0
In the description says
// bigInt GCD(x,y)
// return greatest common divisor of bigInts x and y (each with sam...
Hello, I'm trying to get the value of a button and put it in a variable, but does not give a way, some help?
///HTML
<button class="teclado" id="qTeclado" onClick="clickTeclado(this.value);" value="Q">Q</button>
//JS
var letra = fu...
I have the following obstacle:
var myString = "c/q/1";
var match = myString.match(/c\/q\/([a-zA-Z0-9-].+)/);
But match returns as null , already in the following example:
var myString = "c/q/stringdegrandevalor";
var match =...
I've seen the official documentation here and I do not see that the default value is asynchronous or synchronous, I see no example how to use both (in the second code below).
I know this works:
$.ajax({
url: url,
async: false,
data:...
Hello, I have a link where it opens a modal window (like an "alert") to enter the login and password.
I'm using jQuery, the function $ .ajax {} to be more specific. I would like to know how to send my login and password in the header. What kind...
How to do a JavaScript function that verifies that the scroll of a textarea (this textarea has a responsibility term) has been moved.
If the user moves the scroll, enable a div with the continuation of a registration form.
Follow th...
I'm using the script skrollr.js on a website and when opening it on mobile the scroll bar is not working (it's like if the touch of the cell phone was blocked).
I was wondering how to disable scripts when the user accesses cell phones, since I...
I would like to know if you have a javascript check if an attribute of an element has been changed or not.
For example: If I have a input , I put the required attribute on it, and someone goes there and deletes required of...