diff options
Diffstat (limited to 'www/content/examples/edit-row.md')
-rw-r--r-- | www/content/examples/edit-row.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/content/examples/edit-row.md b/www/content/examples/edit-row.md index 6ad724aa..e0dbb8d2 100644 --- a/www/content/examples/edit-row.md +++ b/www/content/examples/edit-row.md @@ -71,7 +71,7 @@ Finally, here is what the row looks like when the data is being edited: ```html <tr hx-trigger='cancel' class='editing' hx-get="/contact/${contact.id}"> - <td><input name='name' value='${contact.name}'></td> + <td><input autofocus name='name' value='${contact.name}'></td> <td><input name='email' value='${contact.email}'></td> <td> <button class="btn danger" hx-get="/contact/${contact.id}"> @@ -183,7 +183,7 @@ this makes things a bit nicer to deal with. function editTemplate(contact) { return `<tr hx-trigger='cancel' class='editing' hx-get="/contact/${contact.id}"> - <td><input name='name' value='${contact.name}'</td> + <td><input autofocus name='name' value='${contact.name}'</td> <td><input name='email' value='${contact.email}'</td> <td> <button class="btn danger" hx-get="/contact/${contact.id}"> |