Hello
I have Ten div and one textbox in a page. Every div contain single username.Now I want that after clicking on one div, the textbox value will be the username in that div value contain. How can I do that.

So you have a row od div's with different text in each all clickable and you want this to go into a text box onclick?

how about something like this:

<div onclick="namehere.value='username_example';">username example</div>

that that make sense?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.