Skip to content
Advertisement

Tag: javascript

get the input box ‘name’ using javascript

I am making form in PHP and submitting using javascript. I want to get the name of input box, As normal coding gives the value of the input box, but i need to get name of input box. Without onclick functionality on it. Can it possible that retrieving the name of input box in other javascript function on click a

Javascript getTime to php date

I have javascript that turns dates in my view to a time string using getTime(). That then is stored as a value for an option in my select form. Once it is passed to php, how do I turn that into a php date? I have done: Answer You use PHP’s date() function: Updated, thanks Yoshi.

Resize textarea based on lines of text that comes from php/mysql variable

I dont need it to resize automatically as you type, I just need it to be the correct size when the page loads the variable is $row[‘text’];