The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> 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: 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
The_webmaster
post Jul 17 2021, 04:33 AM
Post #2


Member
***

Group: Members
Posts: 40
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

Posts in this topic


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

 



- Lo-Fi Version Time is now: 27th April 2024 - 09:24 PM