handler is too short to be put as a separate function, write all code just here:
```
var selected = $(this);
$(".git-remotes-field").text(selected.text()).attr("data-url", selected.attr("data-url"));
```