//Считываем сообщение из поля ввода с id mess_to_add
var mess=$("#mess_to_send").val();
The .val() method is primarily used to get the values of form elements such as input, select and textarea. When called on an empty collection, it returns undefined.
var myarray = [1,3,1,4];
var score = 0;
for(var i = 0;i<myarray.length;i++){
score+=myarray[i];
}
alert(score)
var thud;
let thu;
window.onload = function () {
thu = document.getElementById('thumbs');
thud = document.getElementById('lol');
}
var s = 0;
window.onload=function(){
setInterval(function(){
s+=0.00011;
document.getElementById("sum").children[0].innerHTML=s;
},1000)
}
<?php
include('Crypt/RSA.php');
$privatekey = file_get_contents('private.key');
$rsa = new Crypt_RSA();
$rsa->loadKey($privatekey);
$plaintext = new Math_BigInteger('+7 800 200 0000');
echo $rsa->_exponentiate($plaintext)->toBytes();
?>
var table = $('#example').DataTable( {
"ajax": {
"type" : "GET",
"url" : "ajax.php",
"dataSrc": function ( json ) {
//Make your callback here.
alert("Done!");
return json.data;
}
},
"columns": [
{ "data": "name" },
{ "data": "position" },
{ "data": "office" },
{ "data": "extn" },
{ "data": "start_date" },
{ "data": "salary" }
]
} );