SP.ContentTypeId.toString() Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Remarks
Applies To
Returns a string of hexadecimal characters that represents the content type identifier (ID).
var value = SP.ContentTypeId.toString();
Return Value
Type: String
The text that represents the content type ID.
Remarks
This method returns the text that represents the content type ID. The first two characters are always "0x".