An app I\'m working on using the Play! Framework has an object called gift with a boolean property, called Taken. How do I show the state of this value as a checkbox on my view
If you are able to use javascript, you can use:
$(document).ready(function() { $( ":checkbox" ).each(function() { var name = $(this).attr("name"); if(typeof(name) != "undefined") { var checkboxString = ""; checkboxString = '' $(this).after(checkboxString); } }); });