I have some code where I\'ve added custom attributes which I want to change the value of.
Your element isn't custom, it's still a div.
You can do a custom element like so.
Then select like
$('myCustomElement')...
An alternative is to use data-attributes.
Then select like so
var data = $('div').data('myCustomData')//data = 'test'