Search code examples
jqueryjquery-uimodal-dialogbpopup

jQuery popup issue


I need a solution for this, I am using bPopup plugin

But, I believe that it's a simple jQuery function. I need to pass single variable, say sales id when someone clicks the tag

Following is the function code, please suggest me some way to achieve it

$("a.sales_info").bind("click", function(){
            $("#popup").bPopup({contentContainer:'#pContent',loadUrl:"test.html p"});
            return false
});

Thanks


Solution

  • I have achieved above thing using "this" for example this.id

    Thanks Everyone for all the help & support.

    Still, suggestions/comments are welcome :)