Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
It's a demo
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra committed Feb 17, 2012
1 parent 9614972 commit bcf6a51
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions example/enter-as-tab.html
@@ -1,6 +1,6 @@
---
layout: example
title: Enter as tab
title: Enter as tab demo
---
<style scoped="scoped">
input, textarea, select, button
Expand Down Expand Up @@ -105,23 +105,6 @@
$("form")
.submit(simulateSubmitting);

$("#click-to-add-checkbox")
.click(addCheckboxAfter);

function addCheckboxAfter(event)
{
var $target = $(event.target);

// Explicitly enabling plussing on new checkbox
var $checkbox = $('<input />')
.attr("type", "checkbox")
.plusAsTab();

$checkbox.insertAfter($target);

$target.focus();
}

function simulateSubmitting(event)
{
event.preventDefault();
Expand Down

0 comments on commit bcf6a51

Please sign in to comment.