Having problems using parameters of a function to display a message

Having problems using parameters of a function to display a message

the result of  $("#"+nombrecampo) is displaying the parameters as strings and is not displaying the things on the following way:
tipo="Medico"
indice=2
clave=nombre
$("#campo").html(Medico[2].nombre);

Sorry for mi english, thanks!