I can't able to hit the javascript when I click on the button. Previously the application is in Rails 3.2 and now I migrated to 4.2.6. I didn't change any js related ones. Please help. This is my code in short:
app/views/reports/_creation.html.erb:
<div id="instagram-inline-js">
<%= render :partial => "photos_inline_js" %>
</div>
<a class="purple_button _round_5" id="select-files-upload-button">Select file(s)</a>
app/views/reports/_photos_inline_js.html.erb:
<script type="text/javascript">
$('#select-files-upload-button').live("click", function() {
$('#select-photos').show();
});
</script>