View Full Version : .style.textdecoration help

03-13-2009, 07:31 AM
This line of code doesn't produce the underline attribute. Is my syntax wrong?

document.getElementById("id_line_label").style.textdecoration = "underline";

Old Pedant
03-13-2009, 07:46 AM

Notice the upper case D.

Most style names of the form "aaa-bbb" become "aaaBbb" when used in JS code.

03-13-2009, 03:43 PM
That was it - thanks!!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum