Unique ID for element
When working with JavaScript I often need a unique ID for the current component I'm woking with:
ERXStringUtilities.replaceStringByStringInString( ".", "_", context().elementID().toString() );
In case of personal memory failures...
When working with JavaScript I often need a unique ID for the current component I'm woking with:
ERXStringUtilities.replaceStringByStringInString( ".", "_", context().elementID().toString() );
No comments:
Post a Comment