Checkbox show/hide multiple elements separately

enginengin

New Member
I am stuck with following code:\[code\]<span><label>Dobierka?</label><input type="checkbox" id="eph-dobierka-q<?php echo $order['order_id']; ?>" value="" size="7" placeholder="0" /></span><span id="dobierka<?php echo $order['order_id']; ?>"><input type="text" name="eph-dobierka[<?php echo $order['order_id']; ?>]" id="eph-dobierka<?php echo $order['order_id']; ?>" value="" size="7" placeholder="0" /><input type="text" name="eph-bu[<?php echo $order['order_id']; ?>]" value="http://stackoverflow.com/questions/15723766/<?php echo $config_eph_bu; ?>" size="9" placeholder="0" /></span>\[/code\]This code generates in OpenCart an order list:
zciIy.png
The \[code\]$order['order_id']\[/code\] variable is a number 1,2,3,4,5,500,600...How is it possible to show/hide dobierkaX tag separately when user clicks on eph-dobierka-qX checkbox?
 
Back
Top