haven't any of you heard of jsfiddle?
http://jsfiddle.net/bbTbx/
http://jsfiddle.net/bbTbx/1/

On Fri, Jan 21, 2011 at 7:10 PM, Stefan Weiss <we...@foo.at> wrote:

> On 21.01.2011 05:02, BobH wrote:
>
>> I have a simple file that should change the background color of a text
>> box on a form when the 'Edit' button is clicked.  For some reason I
>> can't get it to work.
>>
>
> If you want to see the changed background color, you'll need to prevent the
> form from being submitted when you click the "Edit" button:
>
>  <button ... onclick="return setEdit()">Edit</button>
>
>  function setEdit() {
>     f2.style.backgroundColor = "#FF0000";
>     return false;
>  }
>
> HTH,
> stefan
>
>
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/jsmentors@jsmentors.com/
>
> To search via a non-Google archive, visit here:
> http://www.mail-archive.com/jsmentors@googlegroups.com/
>
> To unsubscribe from this group, send email to
> jsmentors+unsubscr...@googlegroups.com<jsmentors%2bunsubscr...@googlegroups.com>
>



-- 
Arieh Glazer
אריה גלזר
052-5348-561
http://www.arieh.co.il
http://www.link-wd.co.il

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to