I'm not overly confident in my own abilities but here goes. I want JQuery to find the data attribute of all elements with a particular class. Then I want it to add them to the ajax dataString array.
There are 6 elements with that class all of which have the data attribute. Rather then include them all by id attributes surely their is an easier way. Would this work.
Here goes
var data[] = $('.sidescroller').attr('data');
var dataString = 'function=' + scripts + '&data[]=' + data[];
//execute PHP
$.ajax({
type: 'POST',
data: dataString,
url: '<?php echo $thisposturl;?>?scripts',
Any ideas how to do it.
Marvellous
sidescroller? If so how do you want the data, should they be coma separated?