I am using a trigger call a get a value from custom event but I want it to return a value and its only giving me Object Object when I do the following call:
var
What you can do is use .triggerHandler() instead of .trigger(). This will return a value.
.trigger()
var user_id=$("#my_div").triggerHandler("get_id", [username]);