In my project we have inline javascript in a partial which is using some instance variables. When we are rerendering that partial after successful ajax call that script is not running.
Can you please help me that how I can solve that problem?
For e.g.
_partial.html.erb
<div class="someclass"></div>
<script>
$(document).ready(function(){
$(".someclass").hide();
});
</script>
The scrip tag is not running on replacing this partial from js.erb file.