Instead of $('#inputPath') you can use $(element), and remote the id="inputPath" from the html, part of the strength of knockout is that it decouples the html with the logic (so we can use this binder in other places in the html)