I know that asterisk means (anything) but how here.
In these statements:
- var labelElems = document.getElementsByTagName("label");
- var jq = $("img[src*=daffodil]");
- $("img:even").add("img[src*=primula]").add(jq)
- .add(labelElems).css("border", "thick double red");
- });
- </script>
- </head>
- <body>
- <h1>Jacqui's Flower Shop</h1>
- <form method="post">
- <div id="oblock">
- <div class="dtable">
- <div id="row1" class="drow">
- <div class="dcell">
- <img src="aster.png"/><label for="aster">Aster:</label>
- <input name="aster" value="0" required>
- </div>
- <div class="dcell">
- <img src="daffodil.png"/><label for="daffodil">Daffodil:</label>
- <input name="daffodil" value="0" required >
- </div>
- <div class="dcell">
- <img src="rose.png"/><label for="rose">Rose:</label>
- <input name="rose" value="0" required>
- </div>
- </div>
- <div id="row2"class="drow">
- <div class="dcell">
- <img src="peony.png"/><label for="peony">Peony:</label>
- <input name="peony" value="0" required>
- </div>
- <div class="dcell">
- <img src="primula.png"/><label for="primula">Primula:</label>
- <input name="primula" value="0" required>
- </div>
- <div class="dcell">
- <img src="snowdrop.png"/><label for="snowdrop">Snowdrop:</label>
- <input name="snowdrop" value="0" required>
- </div>
- </div>
- </div>
- </div>
- <div id="buttonDiv"><button type="submit">Place Order</button></div>
- </form>
- </body>
In the statement:
var jq = $("img[src*=daffodil]");
I know that the (*) means (anything) , but what does it mean here with the (=) sign.
Does the combination carries a special meaning here. Any explanation here please. The outcome of the program is as follows: