What would be the most efficient way to get the value 14500from the data-ls attribute below. I have never seen multiple properties for a single data attribute before, and I am looking for the faster way to extract the value and not have it depend on the order of the data attribute properties.
<div class="slide" data-ls="slidedelay:14500; transition2d: all;"></div>
.
var duration = $('.slide').data('ls').split(';');
duration = duration[0].split(':');
console.log("duration: " + duration[1]);
thanks

data-lsas an object that I know of. You may simply have to exact it from the sting"slidedelay:14500; transition2d: all;".