i simply can not figure out why my code is not working. I've looked into several successful example and applied the same concept but still no success. Any help would be much appreciated
the aim is: when an img is clicked, the input field take up the value stated in the jquery code but this is not working and not sure where i am going wrong
<script>
$(document).ready(function () {
$(".messaging-img").on("click", function(){
$("#order_plan").val("messaging");
$("#order_price").val("0.01");
$("#paypal_express_checkout input:first").val("1010101");
});
$(".unlimited-img").on("click", function(){
$("#order_plan").val("unlimited wifi");basic wifi
$("#order_price").val("0.02");
$("#paypal_express_checkout input:first").val("2020202");
});
$(".basic-img").on("click", function(){
$("#order_plan").val("basic wifi");basic wifi
$("#order_price").val("0.03");
$("#paypal_express_checkout input:first").val("3030303");
});
});
</script>
<div class="table-container">
<table>
<tbody>
<tr>
<td class="left-content">plan:</td>
<td class="right-content"><input id="order_plan" type="" checked="" value=""/></td>
</tr>
<tr>
<td class="left-content">price:</td>
<td class="right-content" ><input id="order_price" type="" checked="" value=""/></td>
</tr>
</tbody>
</table>
</div>
basic wifiin your JS? comments? Any error inconsole?basic wifiyour code is not firing i guess,remove those 2 and try