Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

jquery to set a variable that will contain the content type

$
0
0

Hello,

How do I set a variable in jquery that will contain the content type that is displayed on a SharePoint page?

I've tried several things inside the $(document.ready(function()

  • var txtContentType = $("select[id='ContentTypeId']").val();
  • var txtContentType = $("select[title='ContentTypeId']").val();
  • var txtContentType = $("select[title='Content Type]").val();

Thanks,


Thanks! Patti N.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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