Why jquery option is not working when pass value using wp_localize_script?

My first guess is that the values aren’t the correct “type”. Meaning you might be passing string values when the script expects integers, so try converting the values to integers first.

jQuery(document).ready(function(){

  var newsPerPage = parseInt( newsbox_parameters.newsPerPage );
  var newsTickerInterval = parseInt( newsbox_parameters.newsTickerInterval );

  jQuery(".news_list").bootstrapNews({
     newsPerPage: newsPerPage,
     autoplay: true,
     pauseOnHover: true,
     navigation: false,
     direction: 'down',
     newsTickerInterval: newsTickerInterval,
     onToDo: function () {
        //console.log(this);
     }
  });
});

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)