I am using javascript to change the value of text from select to selected.
Now I want to add in cart which have selected text. Please advise. Thanks in advance.
PHP CODE :
<a class='btn slct' href='javascript:void(0)' >Select</a>
Javascript Code :
<script>
$(document).ready(function() {
$('.slct').click(function() {
$(this).text($(this).text() == 'Select' ? 'Selected' : 'Select');
});
});
</script>