AceCooper

jQuery read

Sep 11th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.35 KB | None | 0 0
  1. $.get(url3, function(data3){
  2.   var tuningVariables = $(data3).find('.tuningoptions script').text().trim().replace(/var /g,"").split(';');
  3.   var tuningValues    = {};
  4.   $.each(tuningVariables,function(i){
  5.     var temp = tuningVariables[i].replace(/"/g,"").split(' = ');
  6.       tuningValues[temp[0]] = temp[1];
  7.   });
  8.   console.log(tuningValues);
  9. });
Add Comment
Please, Sign In to add comment