Passing data to load url

Passing data to load url

I have a global function which can be used for loading an HTML block (<select><option>), enabling a cascading dropdown feature.

js code is:
function getblk(itm,blk,proc,prm){
$("#"+blk).load(proc,{prm: $("#"+itm).val()});
}

I have made the parameter name variable (prm) but somehow this does not work. If I modify the "prm:" to "rgno:" (both without the quotes), it works since the param name expected by the proc is rgno.

Any help on this is welcome and appreciated.

Thanks.
Ed