If I have the following link:
<a class="camel-case" data-MyTitle="Hello">Click me</a>
And I grab the value in javascript:
var data = $('.camel-case').data();
console.log(data);
The json structure looks like this:
{
"mytitle": "Hello"
}
Is there a way to keep the capitalization here, or does javascript (or is this within jquery?) always lowercase these?