The script presented here works like a charm in firefox 2. But it doens't do anything on safari.
What it is supposed to do is take the name of a input field then the id if it is text, div. then change the color depending on the id of the input field if it is text then change the text color. if it is div change the bgcolor of the div. $(document).ready(function () { $('input[name]'),$('input[id$=div]').change(function(){ $('#'+this.name).css('background-color', this.value); }); $('input[name]'),$('input[id$=text]').change(function(){ $('#'+this.name).css('color', this.value); }); }); For some reason it doesn't make the changes in safari. Help would be much appreciated. Rag