How to change background color to panel using a javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thirunavukarasukm
    New Member
    • May 2007
    • 21

    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.............
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by thirunavukarasu km
    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_changeCol our.Attributes. Add("onclick", "javascript :" +.....)


    Cheers!

    -Frinny

    Comment

    • thirunavukarasukm
      New Member
      • May 2007
      • 21

      #3
      i want code for javascript

      for example like

      document.getele mentID("Panelna me").


      pl help

      Comment

      Working...