JSFiddle - React, Tailwind, and code Playground
by charaf11
HTML
<input type='checkbox' onclick='changeText()' id='check'/>
<p><a href='#'>add to cart</a></p>
JavaScript
$('#check').change(function(){
$(this).next().text('added');
});
by charaf11
<input type='checkbox' onclick='changeText()' id='check'/>
<p><a href='#'>add to cart</a></p>
$('#check').change(function(){
$(this).next().text('added');
});