I have javascript in a Rails project that only runs in Chrome. I've tested it in Firefox and IE and I get nothing. Am I overlooking something simple?
<script>
$(function() {
$("#edit").on("click", function() {
$("body").animate({"scrollTop": window.scrollY+130}, 1000);
return false;
}),
$("#edit-on-two").on("click", function() {
$("body").animate({"scrollTop": window.scrollY+130}, 1000);
return false;
});
})
</script>
Thank you in advance for the help!