I was wondering the method of simplifying this script, because somehow I am repeating myself all over again...
$('.userprofile').click(function(){
card_profile.load(url_settings).dialog('open');
});
$('.cust-profile').click(function(){
card_profile.load(url_customer).dialog('open');
});
$('.my-profile').click(function(){
card_profile.load(url_my).dialog('open');
});
url_values, then enumerate the object, using the key for the selector, and the value for the.load()argument. This assumes the urls don't change. If they do, you'll need to update them in the object..hasClass()to choose whichurl_to use..hasClass()? Can you show me an example? Sorry to trouble you, but I'm a bit new in this field...