for(var i = 0; i<document.forms[0].elements.oss.length; i++){
document.forms[0].elements.oss[i].onclick = function change(e){
alert(this.value);
}
}
let monthes = ["Январь", "Февраль" /* и так далее*/]
console.log(monthes[ts.getMonth()]); // Выведет "Январь"
getHours()
. В итоге:let result = new Date(data.date).getHours() + ":"new Date(data.date).getMinutes();
This appears to be a bug in mobile safari, It can not set focus to another text field *from* another textfield. executing the .focus() on a button does work, but this is not what you want.
For usability reasons all the focus() functions are ignored by Safari in iPhone/iPad for usability reasons