472,122 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

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 2765
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.