I am fairly new to programming and testing to see if jquery works with my rails 6 setup. In order to do this I have:
- created a new rails application
- generated a scaffold
- inserted the following code into the index.html.erb view of the newly created scaffold
<script type='text/javascript'>
$('#mydiv').show();
</script>
<div id='mydiv' style='display:none'>
TEST
</div>
I would expect this to display the TEST text.. But it doesn't seem to appear even though the rest of the page renders... Any help very welcome...