Can you please help me with apex variable usage in javascript function.
function viewattachment(expId,contTypeattch,attname){
var def = '{!expBlob[expId]}';
}
expBlob is a Map[Id,Blob]
In the above function, I would like to query this map expBlob of the controller giving the expId. It is taking expId literally and not substituting the actual value of expId from javascript.