How people can check the value of a table from javascript. I am using ruby on rails. I did this :
$(document).ready(function() {
if ("<%= @player.name %>" == "" ) {
//show some divs
}
});
But it doesn't work. Even the player's name is empty, the divs don't showed. I want to check if the player's name is empty, then it should show some divs. Thanks.
escape_javascript?