jquery's API is very chain-heavy, so you can turn this into:
`form.find("[name="+k+"]").focus().val(v);`