•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 422,556 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,682 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 989 | Replies: 2
![]() |
ok here it goes:
I ahve 2 textbox within a form on my HTML page
I want to display the text "SHOUVIK" (without quotes) on the second textbox as soon as I click on the first textbox
Is this possible?
Kindy help
I ahve 2 textbox within a form on my HTML page
I want to display the text "SHOUVIK" (without quotes) on the second textbox as soon as I click on the first textbox
Is this possible?
Kindy help
•
•
Join Date: Mar 2006
Posts: 29
Reputation:
Rep Power: 3
Solved Threads: 2
•
•
•
•
Originally Posted by cancer10
I want to display the text "SHOUVIK" (without quotes) on the second textbox as soon as I click on the first textbox
Make sure that both textboxes have "name" (for older browsers) and "id" attributes.
Add the following to the first textbox:
onfocus="document.forms[0].second_box_name.value='SHOUVIK';"
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Javascript links not working (Web Browsers)
- JavaScript's window.opener (JavaScript / DHTML / AJAX)
- recommendations for JavaScript learning resources? (JavaScript / DHTML / AJAX)
- Javascript/HTML problem!!! (JavaScript / DHTML / AJAX)
- Javascript Useful? (IT Careers and Business)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: JavaScript for uploading images to website
- Next Thread: tag that shows hand on mouseover


Linear Mode