• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. Javascript + Ajax

Forum

  • Crimora.nl

    Dennii 11 juli 2026 om 13:13
  • RPG game gebouwd met AI

    zwpgangster 9 juli 2026 om 11:25
  • (Verkoop) Criminals

    Syntax 5 juli 2026 om 13:22
  • Het Grote Vibe Code Topic

    Syntax 30 juni 2026 om 11:54
  • Ictscripters Chat

    Jeffrey.Hoekman 26 juni 2026 om 16:21
  • Het oorspronkelijke Criminals Script

    Jeroen.G 24 juni 2026 om 09:21
  • StraatBaas is back, maar hoe?!

    Syntax 17 juni 2026 om 10:28
  • PWYL source gezocht

    Syntax 29 mei 2026 om 14:03

Marktplaats

  • Straatbaas.eu – complete Nederlandstalige en Engelstalige online maffia-RPG

    Syntax 24 juli 2026 om 16:45
  • 306 Nieuwe Domeinnamen Juni 2026

    shiga 1 juli 2026 om 13:39
  • 4-letter domein: Togi.nl

    evesi 17 juni 2026 om 17:08

dropdown lijst

  • baldex
  • 9 april 2013 om 16:52
  • Closed
  • baldex
    Chocolate man
    Berichten
    517
    • 9 april 2013 om 16:52
    • #1

    Ik kom er even niet uit

    ik probeer een mooie script te maken voor het automatisch optellen van de product prijzen dat lukt
    alleen loop vast als ik bij de 2de selectbox die wil niet de prijs optellen

    PHP
    <script type="text/javascript" language="javascript">
    
    
    $(document).ready(function() {	
    	var total = 0;
    	function calcTotal()
    	{
    		$('#select > option:selected').each(function() {
    			var value = $(this).attr("value");
    			total += parseInt(value);
    		});
    	}
    	calcTotal();	
    	$("#total").html('<p class="total">Total: <strong>' + total + '</strong></p>');
    	$("select").click(function()	
    	{
    		total = 175;
    		calcTotal();
    		$("p.total").html("Total: <strong>" + total + "</strong>");
    	});
    });
    
    
    	jQuery(document).ready(function(){
            // binds form submission and fields to the validation engine
            jQuery("#contactForm").validationEngine({promptPosition : "bottomLeft"}); 
    			
    		$("#contactForm").bind("jqv.form.validating", function(event){
    			$("#hookError").html("")
    		})
    
    
    		$("#contactForm").bind("jqv.form.result", function(event , errorFound){
    			if(errorFound) $("#hookError").append("Er zijn problemen met het formulier.");
    		})
        });
    	$(function($){
    	   $(".zip").mask("9999 aa");
    	});
    </script>
    Toon Meer
    PHP
    <select style="width:100%" id="select" name="aankomst">
    			 <option value="0">Maak uw keuze</option>
    			 <option value="999">20 april 2013 - 1 week</option>
    			 <option value="200">20 april 2013 - 2 weken</option>
    			 </select>
    <select style="width:100%" id="select" name="flotielje">
    			<option value="0">Maak uw keuze</option>
    			<option value="1">ja 1 week</option>
    			<option value="1">ja 2 weken</option>
    			<option value="0">nee</option>	
    		</select>
    Toon Meer

    hopelijk snappen jullei wat ik bedoel

    Met vriendelijke groet,
    Andrew Osenga

  • wimmpie
    âllo âllo
    Ontvangen Reacties
    11
    Berichten
    1.170
    • 9 april 2013 om 18:52
    • #2

    regel 15:

    Code
    $("select").click(function()


    moet dat geen $("#select") zijn?

  • baldex
    Chocolate man
    Berichten
    517
    • 10 april 2013 om 00:03
    • #3

    hmm ..... ik heb hier geen woorden voor.....

    ik ga hem morgen meteen even er in gooien

    Citaat

    ik heb net getest het stond beetje verkeerd dus hij doet het nu perfect

    de fout zat in de

    $('select').each(function() {
    en
    $("#select option").click(function()

    Met vriendelijke groet,
    Andrew Osenga

    Bewerkt één keer, laatst door baldex: opgelost (10 april 2013 om 08:38).

  • Willem
    Enlightened
    Ontvangen Reacties
    12
    Berichten
    3.839
    • 10 april 2013 om 15:04
    • #4

    Topic gesloten.

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Quanscient ontvangt €10M om AI- en kwantum-native hardware engineering te bevorderen - Tech.eu

    ICTscripters 27 mei 2026 om 12:03
  • Datalek bij leverancier Canvas - Universiteit van Amsterdam

    ICTscripters 10 mei 2026 om 12:03
  • Data privacy in 2026: Hoe de naleving van GDPR verandert

    ICTscripters 8 mei 2026 om 12:16

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37

Gebruikers die dit topic bekijken

  • 1 Gasten
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design