RailsCasts Pro episodes are now free!

Learn more or hide this

donnet's Profile

GitHub User: ldonnet

Site: http://ldonnet.github.io

Comments by donnet

Avatar

It works perhaps if you use text method of jquery object :

javascript
jQuery ->
  $percentage_neti = JSON.parse($('#vote-data').text())
  $('.bar-neti').css("width", $percentage_neti + '%')