javascriptjquerygritter

Jquery Gritter set position


is it possible to change the possition of gritter? Or even better bind it to an element such as a span or a div?

Ive tried:

        $.gritter.add({
            title: 'Dashboard',
            text: 'Field updated!',
            time: 2000,
            position: 'center'
       });

(also tried with buttom, top ect) but the position remain unchanged


Solution

  • Change position by css like left and top position:

    $("#gritter").css('left',"100px");
    $("#gritter").css('top',"20px");