I have a question.
This is my button :
$balance = "3";
<button type="submit" type=tex name="log" class="btn btn-primary">Ticket kaufen! Je mehr, desto mehr Chance habt ihr zu gewinnen!</button>
So, my problem is :
I want the button to become disabled if a user does not have enough money!
It is possible ? With Javascript or JQuery?
Sorry for my English! I hope you can help me!
Thanks
Edit :
I have tired this! :
$balance = "3";
<button type="submit" type=tex name="log" class="btn btn-primary">Ticket kaufen! Je mehr, desto mehr Chance habt ihr zu gewinnen!</button>
<script>
$('button').attr('1838383', $balance)
if ($('button').attr('193939') < COSTOFITEM) {
$('button').hide()
}
</script>
But this doesn't work