Jump to content
  • 0

Перестала работать кнопка


Евгений_Воля
 Share

Question

http://forum.freemar...=1&d=1376555165

Перестала работать вторая кнопка, и при выводе в окне появилось слово "undefined" , помогите заменить слово на слово "ЦЕНА"

И исправить работу второй кнопки!

Заранее благодарен!

Вот код:

<script type="text/javascript">// <![CDATA[
OK1=" -3370 гривен";
OK2=" -2750 гривен";
OK3=" -1999 гривен";
function getDate()
{
today=new Date();
return
today.toLocaleString()+"n";
}
function CheckRadio(form,value)
{
if(value=="Good")
form.Letter.value=getDate(1)+OK1;
else
form.Letter.value=getDate(2)+OK2;
else
form.Letter.value=getDate(3)+OK3;
}
// ]]></script>
<h1>Выбирите ширину спального места:</h1>
<form name="Sel">
<h3><input onclick="if(this.checked) CheckRadio(this.form,this.value);" type="radio" name="Code" value="Good" /> <strong style="font-size: 1.17em;">Диван </strong><strong style="font-size: 1.17em;">(ширина спального места 1,5 м.п.)  </strong><strong style="font-size: 1.17em;">-3370 грн</strong></h3>
<h3><input onclick="if(this.checked) CheckRadio(this.form,this.value);" type="radio" name="Code" value="Good" /> <strong style="font-size: 1.17em;">Диван</strong><span style="font-size: 1.17em;"> </span><span style="font-size: 1.17em;">(ширина спального места 1,3 м.п.)  </span><span style="font-size: 1.17em;">-</span><span style="font-size: 1.17em;">2750 грн</span></h3>
<h3><input onclick="if(this.checked) CheckRadio(this.form,this.value);" type="radio" name="Code" value="Bad" /><strong style="font-size: 1.17em;"> </strong><span style="font-size: 1.17em;">Кресло (ширина спального места 0,9 м.п.)</span><span style="font-size: 1.17em;">-1999 грн</span></h3>
<h3> </h3>
<p><textarea name="Letter" rows="3" cols="35"></textarea>  <input type="reset" value="Сброс" /></p>
</form>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy