النتائج 1 إلى 2 من 2

الموضوع: when click the checkbox show price in input text the price ??

  1. #1
    عضو سوبر نشيط
    تاريخ التسجيل
    Sep 2006
    المشاركات
    700

    when click the checkbox show price in input text the price ??



    Dear all,


    i have checkbox
    ex:

    كود:
    <?PHP
    $price_1 = $100
    $price_2 = $10
    
    ?>
    
    
    <input type=checkbox name=products[] value=id_1> buy host
    <input type=checkbox name=products[] value=id_2> buy domain
    blah blah....

    now i want added the javascript when check box someone
    show the price in text input

    ex:

    كود:
    <input type=checkbox name=products[] value=id_1 onclick="showprice($price_1)"> buy host
    <input type=checkbox name=products[] value=id_2 onclick="showprice($price_2)">  buy domain
    and then + all price's if check multi products and when you uncheck - the price from total

    then show price in

    كود:
    <input type=text name=total value="Javascript(showallprice)">

    like this idea what the code javascript need for that please help me







  2. #2
    عضو سوبر نشيط
    تاريخ التسجيل
    Sep 2006
    المشاركات
    700


    حليت المشكله بنفسي مشكورين










ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض