wcipolli
03-01-2012, 08:23 PM
So I'm working on a table of "choices" the user selects one row and the underlying radio buttons are used to track selection. when the user selects the row I change the black outline from 1px to 2px and from black to blue to designate that it has been selected. In IE9 it works perfectly, but there are no borders at all in chrome or firefox.
//CODE TO CREATE BORDER
function mediaSelector(radioID) {
var mediaID = "rdbtn-media" + radioID;
document.getElementById(mediaID).checked = true;
var c1= document.getElementById("div1");
var c2 = document.getElementById("div2");
var c3 = document.getElementById("div3");
switch(radioID){
case 1:
c2.style.border = "1px solid #000000";
c3.style.border = "1px solid #000000";
c1.style.border = "2px solid #0000FF";
break;
case 2:
c3.style.border = "1px solid #000000";
c1.style.border = "1px solid #000000";
c2.style.border = "2px solid #0000FF";
break;
case 3:
c1.style.border = "1px solid #000000";
c2.style.border = "1px solid #000000";
c3.style.border = "2px solid #0000FF";
break;
}
}
//FIREBUG STYLE TAB
element.style {
border: 1px solid #000000;
height: 94px;
}
Inherited fromtd
p, ul, ol, li, td, th, dl, dt, blockquote, pre, code, h5, h6, label, subtext {
color: #666666;
font-size: 1em;
text-align: left;
}
MasterUI.css (line 712)
p, li, dd, dt, th, td, blockquote, pre, code, xmp, #left-nav, #related-links, #link-list {
font-size: 1em;
}
MasterUI.css (line 35)
html, body, p, ul, ol, li, td, th, dl, dt, blockquote, h1, h2, h3, h4, h5 {
color: #FFFFFF;
font-family: verdana,arial,helvetica,sans-serif;
}
MasterUI.css (line 14)
Inherited fromtable.main-table2
table.main-table2 {
border-collapse: collapse;
border-spacing: 0;
font-size: 11px;
}
MasterUI.css (line 4143)
Inherited fromdiv.AccordionPanelContent
.ui-widget-content-accordion {
color: #373434;
}
jquery...acc.css (line 42)
.AccordionPanelContent {
color: #333333;
}
MasterUI.css (line 5807)
Inherited fromdiv#Accordion1.Accordion
.ui-widget-accordion {
font-family: Arial,sans-serif;
font-size: 1.2em;
}
jquery...acc.css (line 37)
Inherited fromdiv.MainWrapper
.MainWrapper {
text-align: left;
}
MasterUI.css (line 3385)
Inherited frombody.homepage
element.style {
cursor: pointer;
}
html, body {
color: #000000;
font-size: 11px;
}
MasterUI.css (line 702)
html, body, p, ul, ol, li, td, th, dl, dt, blockquote, h1, h2, h3, h4, h5 {
color: #FFFFFF;
font-family: verdana,arial,helvetica,sans-serif;
}
MasterUI.css (line 14)
html, body {
font-size: 84%;
text-align: center;
}
MasterUI.css (line 5)
Inherited fromhtml
html, body {
color: #000000;
font-size: 11px;
}
MasterUI.css (line 702)
html, body, p, ul, ol, li, td, th, dl, dt, blockquote, h1, h2, h3, h4, h5 {
color: #FFFFFF;
font-family: verdana,arial,helvetica,sans-serif;
}
MasterUI.css (line 14)
html, body {
font-size: 84%;
text-align: center;
}
//CODE TO CREATE BORDER
function mediaSelector(radioID) {
var mediaID = "rdbtn-media" + radioID;
document.getElementById(mediaID).checked = true;
var c1= document.getElementById("div1");
var c2 = document.getElementById("div2");
var c3 = document.getElementById("div3");
switch(radioID){
case 1:
c2.style.border = "1px solid #000000";
c3.style.border = "1px solid #000000";
c1.style.border = "2px solid #0000FF";
break;
case 2:
c3.style.border = "1px solid #000000";
c1.style.border = "1px solid #000000";
c2.style.border = "2px solid #0000FF";
break;
case 3:
c1.style.border = "1px solid #000000";
c2.style.border = "1px solid #000000";
c3.style.border = "2px solid #0000FF";
break;
}
}
//FIREBUG STYLE TAB
element.style {
border: 1px solid #000000;
height: 94px;
}
Inherited fromtd
p, ul, ol, li, td, th, dl, dt, blockquote, pre, code, h5, h6, label, subtext {
color: #666666;
font-size: 1em;
text-align: left;
}
MasterUI.css (line 712)
p, li, dd, dt, th, td, blockquote, pre, code, xmp, #left-nav, #related-links, #link-list {
font-size: 1em;
}
MasterUI.css (line 35)
html, body, p, ul, ol, li, td, th, dl, dt, blockquote, h1, h2, h3, h4, h5 {
color: #FFFFFF;
font-family: verdana,arial,helvetica,sans-serif;
}
MasterUI.css (line 14)
Inherited fromtable.main-table2
table.main-table2 {
border-collapse: collapse;
border-spacing: 0;
font-size: 11px;
}
MasterUI.css (line 4143)
Inherited fromdiv.AccordionPanelContent
.ui-widget-content-accordion {
color: #373434;
}
jquery...acc.css (line 42)
.AccordionPanelContent {
color: #333333;
}
MasterUI.css (line 5807)
Inherited fromdiv#Accordion1.Accordion
.ui-widget-accordion {
font-family: Arial,sans-serif;
font-size: 1.2em;
}
jquery...acc.css (line 37)
Inherited fromdiv.MainWrapper
.MainWrapper {
text-align: left;
}
MasterUI.css (line 3385)
Inherited frombody.homepage
element.style {
cursor: pointer;
}
html, body {
color: #000000;
font-size: 11px;
}
MasterUI.css (line 702)
html, body, p, ul, ol, li, td, th, dl, dt, blockquote, h1, h2, h3, h4, h5 {
color: #FFFFFF;
font-family: verdana,arial,helvetica,sans-serif;
}
MasterUI.css (line 14)
html, body {
font-size: 84%;
text-align: center;
}
MasterUI.css (line 5)
Inherited fromhtml
html, body {
color: #000000;
font-size: 11px;
}
MasterUI.css (line 702)
html, body, p, ul, ol, li, td, th, dl, dt, blockquote, h1, h2, h3, h4, h5 {
color: #FFFFFF;
font-family: verdana,arial,helvetica,sans-serif;
}
MasterUI.css (line 14)
html, body {
font-size: 84%;
text-align: center;
}