The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to set a value for an input with javascript
The_webmaster
post Jul 16 2021, 04:37 AM
Post #1


Member
***

Group: Members
Posts: 37
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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 16 2021, 05:02 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 19,777
Joined: 9-August 06
Member No.: 6



I think you need to show us something...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
The_webmaster
post Jul 17 2021, 04:33 AM
Post #3


Member
***

Group: Members
Posts: 37
Joined: 5-February 21
Member No.: 27,773



Thanks for your reply, I've gotten what i want
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th July 2021 - 06:51 PM