./bin/importmap pin jquery
pinned jquery using this command
In application.js file
import jquery from "jquery"
window.jQuery = jquery;
window.$ = jquery;
added these lines
but in my view file I am getting $ undefined
<script>
$(document).ready(function() {
$("#user_primary_email").focusout(function(){
$("#user_email").val($(this).val());
});
});
</script>