Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 October 23rd, 2006, 05:53 AM
Authorized User
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default checking checkboxes dynamically

Some values are stored in the database.On the basis of some field 1 of the checkbox is to be selected in the checkbox group. Please tell me how can I have the checkbox checked when the form is loaded?

 
Old October 31st, 2006, 05:46 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

HI swarnap!!
on page load use javascript function to checked the checkbox
e.g

 document.formname.checkboxname.checked=true;
if checkbox is part of checkboxgroup then
 document.formname.checkboxname[0].checked=true;
where [0] is first checkbox

hope this will help you

Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
2 sets of Checkboxes DJmoYst BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 June 7th, 2006 01:49 PM
Loop through checkboxes Godko Visual Studio 2005 1 April 9th, 2006 11:32 PM
JSP Checkboxes saj_cher JSP Basics 0 February 8th, 2005 04:41 AM





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