commedo's blogger

Wednesday, October 27, 2004

[PROGRAMMING TIPS] How to trigger select action while clicking a label

You need the following HTML code to make this work:









This code works for IE and Mozilla (FireFox) --> Tested.

Tuesday, October 19, 2004

[PROGRAMMING TIPS] Browser-Compatibility while accessing HTML element using DOM

Please notice that MSIE accesses an HTML element using attribute ID, but Mozilla not. Mozilla uses attribute NAME instead of ID. So, you just simply write both attributes to make it work. See the following example:

<span id="var_name" name="var_name"></span></span>