Tag Archives: framework

[Play] Iterate over objects using jQuery

What if I want to navigate into each checkbox, radio of my html? You can do it pretty easily using jQuery.each function. In every checkbox element I want to send a post message to my Play Framework. jQuery.each($(‘:checkbox’), function() { $.post(‘@{myPlayMethod()}’, { itemValue: $(this).val() }) }); This code sends the html element value property to [...]

Posted in play | Also tagged , , , | Leave a comment