Hi Everyone,
So glad that I found this forum dedicated to javascript solutions and expertise. I am hoping that someone can help me as I am still a beginner with using javascript. It really is some great stuff!
I have some drop down list boxes on a form and a check box. When the check box is clicked, it enables the list boxes so they can be selected, otherwise they are deselected. The script seem to be working just fine.
Then recently, I upgrade my browser to IE8 and began getting this error, though I cannot see what the issue is really. The file location (URI) exists as I pasted that into the browser and it wanted to download it, so I know the path is correct to the file.
Message: Invalid character
Line: 1
Char: 1
Code: 0
I opened the file, but cannot see any invalid characters with it. Here is the script:
Code:
function toggleInputs(daCheckbox,rowNumber){
var disabled = ! daCheckbox.checked
document.getElementById("LIST1_"+rowNumber).disabled = disabled
document.getElementById("LIST2_"+rowNumber).disabled = disabled
document.getElementById("LIST3_"+rowNumber).disabled = disabled
}
Note: For some reason when I paste the script here, the disabled comes out to be disabl ed (with a space) though I am not pasting it that way.
Thank you for any help or assistance with this.
Steven
Last edited by chrishirst; 11-22-2010 at 12:28 PM..
|