I have the following link:
<a href="/Packages/PackageActionDownloadAsync" data-ajax-type="Download" data-ajax-packageid="AGI-VS-GAME-M52-1.5.3.2.67" data-ajax-machineid="30" class="iconGear action tip" data-hasqtip="true" oldtitle="Download" title="" aria-describedby="qtip-1">Download</a>
and javascript code:
var obj = $(this),
objData = obj.data(),
packageId = objData.ajaxPackageid,
operation = objData.ajaxType;
I tried this:
alert(objData.ajaxPackageid);
alert(objData.ajaxPackageId);
alert(objData.AjaxPackageId);
they all return "undefined". The only one that works is this:
alert(objData.ajaxType);
what is going on? I'm using "jquery-1.7.1.js"