jQuery function didn’t work in my plugin

Instead of using:

$(document).ready(function() {
    $("#hide").click(function() {
        $("#container-post").hide();
    });
});

use:

jQuery(document).ready(function($) {
    $("#hide").click(function() {
        $("#container-post").hide();
    });
});

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