How to set a value for an input with javascript |
How to set a value for an input with javascript |
The_webmaster |
Jul 16 2021, 04:37 AM
Post
#1
|
Member Group: Members Posts: 40 Joined: 5-February 21 Member No.: 27,773 |
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
|
pandy |
Jul 16 2021, 05:02 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
I think you need to show us something...
|
The_webmaster |
Jul 17 2021, 04:33 AM
Post
#3
|
Member Group: Members Posts: 40 Joined: 5-February 21 Member No.: 27,773 |
Thanks for your reply, I've gotten what i want
|
Lo-Fi Version | Time is now: 28th May 2024 - 09:29 AM |