DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: how to set defaultChecked in firefox and IE7

  1. #1
    Join Date
    Nov 2006
    Posts
    4

    how to set defaultChecked in firefox and IE7

    Greetings all,

    Please help me to get the solution to get defaultChecked perform well in both firefox and IE7.
    Previously i use the code below it worked fine in IE6 and firefox.
    var myCheckBox = document.createElement("input");
    myCheckBox.setAttribute("id", ("check1"));
    myCheckBox.setAttribute("type", "checkBox");
    myCheckBox.setAttribute("checked", true);
    but its not working after i update my IE6 to IE7.
    please help me.

    Best Regards,
    helpless
    Last edited by puniva; 12-01-2006 at 01:23 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center