Re: CSS and/or JS questions
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: CSS and/or JS questions

From: onetitfemme <onetitfemme2005@yahoo.com>
Date: Mon May 01 2006 - 01:13:36 CEST

> > The form element I need only in order to format the pop up and to use
> > the id selector, in order to feed it in with. I need to complete the
> > forms dynamically because I work on multilang sites

> Then create the form dynamically as well.

> myForm = document.createElement('form')
.
 You know when I code JS I expect for things not to work ;-). I wonder
how cross browser these (to me) naively looking statements are. (new
Option(...)) statements are DOM 0 so they will probably work flawlessly
in all browsers, but I wonder if the same applies to check boxes and
radio buttons.
.
> > ..
> > Also there are ways to dynamically insert elements in a select box via
> > "new Option(...)". How can you do the same thing with radio button or
> > check boxes options in a form?

> radioInput = document.createElement('input')
> radioInput.type = "radio"
.
 Thanks and let me test this in all browsers I need to test this web
app.
.
 onetitfemme
Received on Mon May 1 05:28:29 2006