Skip to main content

All Questions

-2 votes
1 answer
573 views

Continuously updating textarea data to variable

I want to get text from textarea to a string and update string content on change. Also, I want to make it without jQuery. HTML: <textarea id="switcher" oninput="update(this)" ...
Stas Iaremenko's user avatar
1 vote
1 answer
2k views

Javascript setInterval doesn't update timestamp used inside

I am using setInterval in Javascript. For a simple example I tried to update a time displayed. var tim = new Date(); function loadLog(){ document.getElementById('timebox').innerHTML=tim.getTime();...
user2212461's user avatar
  • 3,223
0 votes
4 answers
4k views

have div content update when variable changes in javascript

i have searched around but cant find exactly what i need. i want the div, which contains a variable value, to update every time the variable changes. is this possible? without reloading the whole page,...
Hamzah Malik's user avatar
0 votes
4 answers
6k views

Enter variable name in textbox and get corresponding value

I have created 3 variables a,b,c. I have assigned values to a and b and have also made a textbox. What I want to do is enter the name of a the variable in the textbox and click the button, then the ...
rohan_vg's user avatar
  • 1,109
0 votes
2 answers
1k views

PHP, JavaScript and MySQL: updating and passing of variables

I am trying to increment a number and update the database and then display the number without refreshing the page. I am just wondering, is there a way to read/update MySQL using JavaScript? I tried ...
Sivapriyan's user avatar