I am working on a SP2013 on-premise farm and try to create a custom page layout. There are some JQuery function I need it render on particular custom page layout but not other pages.
I added above snippet to my custom page layout html. It doesn't renderat all. However when I added it to the same location of my custom Master page, it works.
May I know what is the suggested way to add JS or JQuery to custom layout page? Thanks.