Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enable/Disable Text Input not working in Internet Explorer 9

Status
Not open for further replies.

cisco999

Programmer
Apr 26, 2001
66
US
My user is presented with data in a table format. If the checkbox on a row is checked then the Ship Qty becomes editable and vice versa. The following script works but NOT in IE9 to enable/disable the SHIP_QTY field. Is there another way to accomplish this?

function toggleSelect(fieldName)
{
var idx = fieldName.lastIndexOf("_");
var sub = fieldName.substring(19,idx);
if (document.findForm["cb_Row_PageAutoDelete_" + sub].checked) {
document.findForm["SHIP_QTY_" + sub].disabled=false ;
} else {
document.findForm["SHIP_QTY_" + sub].disabled=true ;
}
return true;
}

Thanks for you help.
 
Actually, there are three more questions:

- How are you calling the function?
- Where are you calling it from?
- What argument(s) are you passing?

Dan




Coedit Limited - Delivering standards compliant, accessible web solutions

[blue]@[/blue] Code Couch:
[blue]@[/blue] Twitter:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top