السلام عليكم ...
أخواني المحترفين عندي مشكله عقدة لي الأوت بوت ...
أنا ابي الأوت بوت يكون بعدما اختار على هذه الأختيارات و اضغط على الناتج
مباشره ينطلق إلى مساحة textarea
ويعبيه الأختيارات اللي أنا حطيتها ...أرجوا الأفاده وهذا هو الكود ..وبالتحديد المشكلة في الأرسال البراميتر لأنه أصلا مايدخل الفنكش ليش مو عارف ..ياليت ترشدوني ..
<html>
<head>
<title> Scientist! </title>
<script language="javascript" type="text/javascript">
function scns(from)
{
var ch;
ch=document.from[0].Science;
txt="";
for (i=0;i<ch.length;++ i)
{
if (ch.checked)
{
txt1=txt1 + ch.value + ",";
}
}
document.from.textarea.value=document.write("you like the following" +
txt1+"and you are "+form.study.value+"."+"do you know you chose! Well they are ...");
}
</script>
</head>
<body>
<form name="sciencesFrom" method ="post" action="">
<p>
<strong>Which Science you like the
</strong>
<label>
<input name="Science" type="checkbox" value="Mathematics"/>
Math</label>
<label>
<input name="Science" type="checkbox" value="Chemistry "/>
Che</label>
<label>
<input name="Science" type="checkbox" value="Informatics"/>
Info</label>
<p>
<strong>Which your field of study:</strong>
<label>
<input name="study" type="radio" value="Math Student"/>
MathStudent</label>
<label>
<input name="study" type="radio" value="Chemistry Student"/>
CheStudent</label>
<label>
<input name="study" type="radio" value="Informatics Student"/>
InfoStudent</label>
<p>
<input type= "button" value= " result"
onClick= "scns(this.from)"/>
</p>
<p>
<label><h4></h4>
<textarea name = "textarea" value="textarea" rows="" cols=""></textarea>
</label>
</p>
</form>
</body>
</html>أفيدوووني ...بحل هذه المشكلة ...
