Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1092389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:40:29+00:00 2026-05-16T23:40:29+00:00

This problem shows only in ie.all other browser namely ff,chrome,safari,opera works well. It doesn’t

  • 0

This problem shows only in ie.all other browser namely ff,chrome,safari,opera works well.
It doesn’t show chcekbox instead shows a value box…

code:

<html>
<head>
  <title></title>
 <style>
 *{margin:0;padding:0;}
 ul {
    padding:10px 10px 0 35px;
    list-style:none;
    }

 li{
 display:inline;
 text-weight:bold;
 color:#475D7F;
 }
 li img{margin-bottom:-2%;}
 </style>
<script language="JavaScript" type="text/javascript">
<!--

function DOM(obj,id){
var total=10;
var coll=3;
var row=total/coll;

var tar=document.getElementById(id);
var table=document.createElement('TABLE');
  table.border='0';
  tar.appendChild(table);
var tbdy=document.createElement('TBODY');
  table.appendChild(tbdy);

  for (var zx1=0;zx1<=row;zx1++){
   var tr=document.createElement('TR');
   tbdy.appendChild(tr);
   for (var zx2=0;zx2<coll;zx2++){
    var td=document.createElement('TD');
    var ul=document.createElement('UL');    
    var input=document.createElement('INPUT');
    var img=document.createElement('IMG');

    tr.appendChild(td);
    td.width='200';
    td.appendChild(ul);
    var li1=document.createElement('LI');
    li1.appendChild(input);
    ul.appendChild(li1);
    input.setAttribute("name", "friend");
    ***input.setAttribute('Type', 'checkbox');***
    input.setAttribute("value", "yap frnd");
    input.setAttribute("id", "xyz");


    var li2=document.createElement('LI');
    ul.appendChild(li2);
    li2.appendChild(img);
    img.setAttribute("src", "x.jpg");
    img.setAttribute("title", "x");
    img.setAttribute("alt", "x");
    img.setAttribute("style", "padding-bottom:-2%;");

    var li3=document.createElement('LI');
    ul.appendChild(li3);      
    li3.appendChild(document.createTextNode('Ataus Samad Rubel'));

   }
  } 

}
//-->
</script>
</head>

<body>
<select onchange="DOM(this,'target');" >
<option >DOM Method</option>
<option >do</option>
</select>
</body>
</html>

wish someone look into it..thanks for your appreciation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:40:30+00:00Added an answer on May 16, 2026 at 11:40 pm

    You can’t change the type attribute of an <input> or <button> after adding it to the DOM in IE, so change it before appending it, like this:

    input.setAttribute("name", "friend");
    input.setAttribute("type", "checkbox");
    input.setAttribute("value", "yap frnd");
    input.setAttribute("id", "xyz");
    li1.appendChild(input);                 //this needs to happen after
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Fancybox works properly in all other browsers. Only IE can't show it properly. The
I have a site that works fine in android browser, FF, Chrome, Safari IE9+
I've been looking all over and i can't find anything to fix this problem.
I have a problem with my rss in Safari browser. I have a rss
I have a very weird problem. This ONLY affects Firefox on Mac, using the
i don't face this problem while working on localhost only when I access the
i have a strange problem only in Chrome using an iframe but working in
The easiest way to explain this problem is to show you some code: Public
Premise This problem has a known solution (shown below actually), I'm just wondering if
I wanted to show problem with this video. Please watch... I've 2 pages. Second

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.