Is there some attribute in WPF that I can add to element, so when I click it the target control get focus? The closest thing I have found is 'Target', but it works only with access keys and clicking it has no effect.
...
Labels have a 'for' attribute which makes them point to a certain input field. I need to change the value of this attribute with JQuery so I could use:
$("label").attr("for", "targetName");
But I also need to set the className, so i'd prefer to use:
$("label").attr({
for: "targetName",
className: "something"
});
You might ...