HighDots Forums  

Re: checkbox-Problem

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss Re: checkbox-Problem in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Honnen
 
Posts: n/a

Default Re: checkbox-Problem - 08-01-2003 , 10:12 AM






Marko Bischof wrote:
Quote:
hallo,

ich habe folgendes Problem:
das Setzen des Zustandes (checked) einer Checkbox soll mit einem
confirm() bestätigt werden.
Bei "ok" ist alles ok, bei "Abbruch" wird zwar meine Aktion nicht
ausgeführt, jedoch ändert sich ja der Zustand der Checkbox, da soll
nicht sein.
Wie kann ich das unterbinden?
Ich glaube, Du suchst
<input type="checkbox"
onclick="return confirm('Are you sure?');"


--

Martin Honnen
http://javascript.faqts.com/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.