script:
$(".cad .et_pb_row .field__items").attr('onload=','startMoving(this)');
html:
<div class="et_pb_row homepage-news-boxes course-finder-subjects">
<div class="field__items">
Im attempting to add an attribute but I can't get it to add to the element.
You need to put it this way
$(".cad .et_pb_row .field__items").attr('onload','startMoving(this)');