What would be the correct way to accomplish this ?
var parameter = json.Parameter;
switch (foo)
{
case "0" : foo = "There is no link";
break;
case "1" : foo = "Here is a link : <a href=\"www.alink.com/?" + parameter + "\">Link B</a>";
break;
}
$("#result").append( foo);
The way I tried this b would just look print "Here is a link : " but not the actual link.