+ 1
How can i swap two numbers using jQuery?!?
3 Réponses
+ 13
var a = 1;
var b = 2;
var temp = a;
a = b;
b = temp;
Or using ES6:
[a, b] = [b, a];
+ 6
Igor Makarsky,
That's right but...
www.needsmorejquery.com
0
Igor Makarsky I am getting input from the user how can I swap them via jQuery?!?