- // Less code needs to be included in the HTML client
- $('#switchmenu').html('\
- <a href="#" onclick="switchView(\'recordview\')">Record Browser</a>\
- <span> | </span>\
- <a href="#" onclick="switchView(\'targetview\')">Target Info</a>');
+ $("#switchmenu").html($("<a/>", { href: '#',
+ onclick: "switchView(\'recordview\')",
+ text: "Record Browser",
+ }));
+ $("#switchmenu").append($("<span/>", { text: " | " }));
+ $("#switchmenu").append($("<a/>", { href: '#',
+ onclick: "switchView(\'targetview\')",
+ text: "Target Info",
+ }));