I need to identify my pages with something that can be picked up by:
function refreshGrid(entity) {
var contentID = $('#ContentID').val();
So I need some element that has a value or something that I can check in my external script. I tried <input id="ContentID" type="hidden" value="01"> but not inside a form. It always seem to set itself to “00” and I think probably it is not a good idea to use when not inside a form.
Is there some other way I could place a value inside an element on a page that I could check. I just need something where I could put codes such as “00” or “01” or “02” etc. I would also like to do this the “correct” way so I’d not like to use a form.
It’s not particularly elegant, but it sounds like a hidden
<span>will suffice.and