Hi,
I wrote a javascript code as follows
[CODE=javascript]function fun1()
{
var element = document.create Element('input' );
element.type='c heckbox';
element.checked ='checked';
body.appendChil d(element);
}[/CODE]
this code is working fine in Firefox but in IE the checkbox is creating but it is unchecked.
I want a checked check box(It is coming in firefox)
Help me out please
I wrote a javascript code as follows
[CODE=javascript]function fun1()
{
var element = document.create Element('input' );
element.type='c heckbox';
element.checked ='checked';
body.appendChil d(element);
}[/CODE]
this code is working fine in Firefox but in IE the checkbox is creating but it is unchecked.
I want a checked check box(It is coming in firefox)
Help me out please
Comment