Localizing methods for jQuery append prepend wrap parent

If lu_ban_object.method equals the string wrap, and you’d like to use that string to call jQuery’s wrap() method, you’d use bracket notation :

jQuery(function($) {
    $('.advert')[lu_ban_object.method]('<div>Hello World</div>');
});

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