At 08:47 AM 1/27/2003, Geir Bækholt wrote:
Hello Dylan,
Monday, January 27, 2003, 4:19:54 PM, you wrote:
This (selected="selected") doesn't work in the browsers. Can anyone see what I am doing wrong?
That code works for me in Opera and IE6... but it's not 100% correct HTML.
it is 100% correct XHTML and should work fine in all recent browsers.
Indeed... the operative word being "should." However, the original poster says selected="selected" doesn't render correctly on his browser. I'm making the assumption that he knows well enough to say that with some authority. Since the browser wasn't specified, one has to suspect non-support for XHTML. XHTML is pretty darn close to fully backwards-compatible with HTML, but I have heard of issues, particularly with Mozilla. Oddly enough, the OP's MUA is Mozilla. Not that I've heard of any problems with *this* particular attribute... and as I said, it works on *my* browsers. I merely suggested he give the HTML syntax a try... if he came back saying that made no difference, the next suggestion would be to take a closer look to make *sure* this was the code being rendered. If that change to HTML syntax *did* make a difference... well, there's your answer right there. Feel free to jump in and share any theory you have on what else might produce this problem. Dylan