On Nov 14, 2007 11:11 PM, Olly Hodgson <[EMAIL PROTECTED]> wrote: > > onchange="showSubcategory(this.value, > document.getElementById("anotherElement").value);"
While I'm here, two points: Doing anything major using the onchange event isn't a great idea. The reason being it can scupper keyboard users -- some browsers will fire the event when the user's moving through items in the <select> using the cursor keys. Secondly, using inline event handlers is right up there with inline styling. Ideally, you should be keeping everything in a separate script file, in the same way you'd keep your CSS out of the HTML. http://www.onlinetools.org/articles/unobtrusivejavascript/ Cheers, -- Olly Hodgson http://thinkdrastic.net/ ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************