[jQuery] .css() doesn't seem to work when I add the transitional DTD to my index page?
I'm having a weird problem. . .
When I add:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
to the top of my index page, the css calls from the code snippet below
stop working.
//
*************************************************************************
// propfuncs -
//
*************************************************************************
function update_property( id, property, value ) {
if ( property == "posx" ) {
$("#" + id).css( "left", value );
} else
if ( property == "posy" ) {
$("#" + id).css( "top", value );
} else
if ( property == "width" ) {
$("#" + id).css( "width", value+"px" );
} else
if ( property == "height" ) {
$("#" + id).css( "height", value+"px" );
} . . .
If i remove the DTD header the code works fine.
Is the latest jQuery from the SVN repository broken, or am I just
missing something.
Any thoughts or ideas?
Thanks,
ml