Wrox Programmer Forums
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 16th, 2008, 02:01 PM
Authorized User
Join Date: Mar 2008
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to myself.panku
Default Set Text to checkbox

Hello frnds,

   How can I set the Text to CheckBox in Java scrit..

   is it right? its not working

       document.getElementById("chk2").Text = "Pankaj";

chk2 is the name of my checkbox control.

-Pankaj Bahuguna
Old March 17th, 2008, 05:33 AM
Friend of Wrox
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts

I don't believe .Text is a property in Javascript. Check on the Javascript board for the proper syntax. I think it has something to do with .innerHTML???


Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.

Similar Threads
Thread Thread Starter Forum Replies Last Post
set text to checkbox myself.panku ASP.NET 1.x and 2.0 Application Design 2 April 14th, 2008 12:57 PM
Chapter 5 read text & checkbox: a stopper! zeitguy BOOK: Beginning Ruby on Rails 5 April 1st, 2008 10:37 PM
Beginning ASP 3.0: changing text field to checkbox AlanM Classic ASP Basics 0 July 1st, 2007 03:36 AM
Can't set text property of dynamic text box sreerajrs ASP.NET 1.0 and 1.1 Professional 1 May 31st, 2006 09:39 PM
set text color larry Javascript How-To 9 July 8th, 2004 01:01 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.