[Solved] When i click on an element add another ID or class


Try .on()

As your content is added dynamically so it is not accessible directly ,So you have to use Event delegation.

$(".minwidth_IE").on("click","#custom_background span",function () {
        $("#account ,.minwidth_IE ,.main .main-head ,#fa_toolbar").removeClass("bg1 bg2 bg3 bg4 bg5 bg7 bg8 bg_custom").addClass(this.id);
        my_setcookie("custom_background", this.id, true)
    });

3

solved When i click on an element add another ID or class