Skip to content

Instantly share code, notes, and snippets.

@andresmoschini
Last active January 2, 2016 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andresmoschini/8298865 to your computer and use it in GitHub Desktop.
Save andresmoschini/8298865 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The HTML5 Herald</title>
</head>
<body>
<!-- option 1 -->
<label
data-bind="attr: { 'for': 'Agency' + $index() }">Agency</label>
<input
type="text"
data-bind="autocomplete: Agency, autocompleteOptions: { listItems: $root.vm().agencyCourtTree, label: 'AgencyName' }, attr: { 'id': 'Agency' + $index() }" />
<!-- option 2 -->
<label>
<span>Agency</span>
<input
type="text"
data-bind="autocomplete: Agency, autocompleteOptions: { listItems: $root.vm().agencyCourtTree, label: 'AgencyName' }" />
</label>
<!-- option 3 -->
<label>
<div>Agency</div>
<input
type="text"
data-bind="autocomplete: Agency, autocompleteOptions: { listItems: $root.vm().agencyCourtTree, label: 'AgencyName' }" />
</label>
<!-- option 4 -->
<label>
<p>Agency</p>
<input
type="text"
data-bind="autocomplete: Agency, autocompleteOptions: { listItems: $root.vm().agencyCourtTree, label: 'AgencyName' }" />
</label>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment