הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 25-05-06, 13:32   # 1
eXtaZa
חבר בקהילה
 
מיני פרופיל
תאריך הצטרפות: Dec 2005
הודעות: 288

eXtaZa לא מחובר  

הכנתי קוד בשבילך, תוכל להשתמש בו, אבל עשיתי עבודה ארוכה עם If ... כשחושבים על זה עכשיו עדיף היה עם switch אבל לא משנה... אז הינה:
HTML קוד:
<html>
<head>
<title>CheckBox testing</title>
<script language="JavaScript" type="text/javascript">
<!--
function dCheckBox(){
  var bla = document.getElementById('bla').checked;
  var bla2 = document.getElementById('bla2').checked;
	if(bla2 == false)
  document.getElementById('bla').disabled = false;
	else if(bla2 == true)
  document.getElementById('bla').disabled = true;
	if(bla == false)
  document.getElementById('bla2').disabled = false;
	else if(bla == true)
  document.getElementById('bla2').disabled = true;
}
//-->
</script>

</head>
<body>
<form>
<INPUT TYPE="checkbox" id="bla" NAME="bla" VALUE="bla" onClick="dCheckBox()">
<INPUT TYPE="checkbox" id="bla2" NAME="bla2" VALUE="bla 2" onClick="dCheckBox()">
</form>
</body>
</html>
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 23:46.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ