I need to pass the input.number
value to the attribute data-quantity
of the button
in the div.add
.
I also need the select#color
value to the attribute data-color
of the same button
.
Can anybody help me ?
<div class="col-m">
<a href="#" data-toggle="modal" data-target="#myModal1" class="offer-img">
<img src="images/Long-Sleeve-Shirt.jpg" class="img-responsive" alt="">
<div class="offer">
<p><span>Offer</span></p>
</div>
</a>
<div class="mid-1">
<div class="women">
<h6><a href="single.html">Men's Marty Chambray Long-Sleeve Shirt</a></h6>
</div>
<div class="mid-2">
<p>
<label>$14.00</label><em class="item_price">$12.50</em>
</p>
<div class="block">
<div class="starbox small ghosting"></div>
</div>
<div class="clearfix"></div>
</div>
<select id="color">
<option value="red" onclick="color(this.value)">Red</option>
<option value="blue">blue</option>
</select>
<input type="number" name="quantity" id="quantity"></input>
<div class="add">
<button class="btn btn-danger my-cart-btn my-cart-b " data-id="1" data-name="Levi's Men's Marty Chambray Long-Sleeve Shirt" data-summary="summary 1" data-price="12.50" data-quantity="2" data-color="Blue" data-image="images/Long-Sleeve-Shirt.jpg">Add to Cart</button>
</div>
</div>
</div>