I modified the newform of a SharePoint 2013 list to include a custom JavaScript block. The script block was added just before the closing tag of the below asp content block.
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
</asp:Content>
When the page is rendered after clicking on the new item, the JavaScript block does not show up. What's strange is that it does work in one of the SharePoint sites but does not work in the other site. I also considered testing it with an another list in the same SharePoint site and it didn't work whereas it worked with any list in the other SharePoint site. Has anyone encountered this problem?