Javascript: If function shortlist

Hello, I do not know how I manage that an If function in Javascript checks the contents of a selection list. (If shortlist = x, then show me a picture if = y, then another) I do not know whether something is, but I am confident and hope to help.

The best answer

If if is a must, so ye shall take no switch, then it goes like this:

else if(auswahlliste==y)
else if(...
zeigeMeldung("kein Bild gefunden");

Date: 2019-08-18 Views: 0

Related articles

  • JavaScript wait function 2012-03-17

    Hello, I want that when you click on a link, the page after a certain time begins to load. Is that possible with JavaScript and if so how should you write it? --answer-- Yes, you can, but why would you want to do that? Users expect immediate change a

  • javascript calculator function 2012-10-14

    How can I add in a javascript function any number to a given number as simple as possible? I tried it this way: number2: the addition results: --answer-- add function (x, y) {return x + y} call add (1, 2); var taxes = tax + 5;

  • JavaScript onClick function 2013-04-08

    Hey, how do you spell that right in JavaScript that a class to a DIV element is added when you click on an element? --answer-- with jQuery so: $(".DEIN-ELEMENT").click(function(){ $('.DEIN-DIV').addClass("KlassenName"); }); Faith is ha

  • Javascript question function demolition! 2014-03-26

    Hello I write just a php page and I have a function installed but I can here the script abort with a button in php: PHP Script clipping: click me JS: function showdiv (id) {document.getElementById (id) .style.display = 'block'; } Function hidediv (id

  • [JavaScript] --- How do I use functions script across? 2012-11-07

    Suppose I have an HTML file in a JavaScript file is inserted: JavaScript.js. Now I have in the HTML file part. If I declare a function in the JavaScript file, I want to call in the script part. How does it work? --answer-- By you einbindest before th

  • JavaScript-time? 2012-01-04

    Hi Com, I wanted to spend with JS a time and not get ahead or find because no errors. <h1>Uhrzeit</h1> <p id="zeit"></p> <script type="text/javascript"> <!-- function time() { var jetzt = new Date(); va

  • Edit CSS with JavaScript 2012-06-12

    Hi would like to share with JavaScript, the CSS classes. The internet address to "className". But if I make it happen absolutely nothing. Does anyone know what the problem is? CSS Datei: @font-face { font-family: 'plantagenet_cherokeeregular'; s

  • Javascript values ​​to PHP passed? 2012-12-11

    Does anyone have a solution, if I want to pass values ​​from Javascript ans PHP? <? Php function deleteB ($ Time, $ date) {echo $ time; echo "hi"; }?> --answer-- Lies you sometime in the topic "AJAX" a. Thus you have the opportun

  • Effect - FadeIn FadeOut - JavaScript / jquery 2012-12-14

    Hi, I use this code to a Subnavi implement it works beautifully. ;) Only I would like not so clumsy and out it goes. I have seen that you can use with jquery FadeIn and FadeOut. But as I understood it sat in the function I have not yet. : D <script l



Copyright (C) 2019, All Rights Reserved.

M3tch all rights reserved.

processed in 0.532 (s). 10 q(s)