469,358 Members | 1,566 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

How to change background color to panel using a javascript

Hai

i created one ascx (Usercontrol)...file

the user control file contain one panel and one check box


if i go to click the check box the panel backcolor will change

the panel control inside check box

i want using javascript how to change the panel bgcolor


pl help me.............
May 4 '07 #1
2 2623
Frinavale
9,735 Expert Mod 8TB
Hai

i created one ascx (Usercontrol)...file

the user control file contain one panel and one check box


if i go to click the check box the panel backcolor will change

the panel control inside check box

i want using javascript how to change the panel bgcolor


pl help me.............
In your Page_Load() method you're going to have to add an attribute to the checkbox control that sets your JavaScript.

For example:
chkbx_changeColour.Attributes.Add("onclick", "javascript:" +.....)


Cheers!

-Frinny
May 4 '07 #2
i want code for javascript

for example like

document.getelementID("Panelname").


pl help
May 4 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Bobofrut | last post: by
4 posts views Thread by Sebastien IDOUX | last post: by
2 posts views Thread by shapper | last post: by
8 posts views Thread by =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.