Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Simple jQuery script doesnt fire

$
0
0

Hi!

I have this script on my page:

@section Scripts {$("#moreLink").click(function () {$(this).slideUp();$("#moreSection").show();
    });
}

this link

<a id="moreLink" href="#">Les mer</a>


and the section:

<section id="moreSection" style="display:none;">
    test</section>

  
    
So yeah, the idea is to click the link and the section appears. Pretty simple. But no. No matter what I do it doesnt appear.

If someone could please take a look at this and maybe look at the page source.
The page is located here: https://lundbeckconsulting.no/Home/About



Many thanks in advance :)


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>