Menu
Hi guys, I’m very new with javascript and using jquery, so please help if you can. I’m going to try and explain my situation best as possible.
Basically I’m getting a value from the database either true/false. I have a alert box that shows it being true/false. I want a checkbox to be checked if true else not.
Here is the line of code that I have and it just automatically checks everytime, which I obviously don’t want. Any help would be great and I’m sure I’m just missing something very easy.
$(‘#returnableCheckbox’).attr(‘checked’, $(selectedPlatform).find (‘.equipmentReturnable’).val())