Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ How to set a value for an input with javascript

Posted by: The_webmaster Jul 16 2021, 04:37 AM

Please help, I have a page like a chat page and when a user post a message it displays the user's name, So i made the user's name to be clickable so that when the user's name is clicked the name would become the value of the message input. I tried doing it but when a name is clicked the first name on the message would become the value of the input instead of the name I clicked. Thanks in advance

Posted by: pandy Jul 16 2021, 05:02 AM

I think you need to show us something...

Posted by: The_webmaster Jul 17 2021, 04:33 AM

Thanks for your reply, I've gotten what i want

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)