0.0
No commit activity in last 3 years
No release in over 3 years
Vendors peeper.js for rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.0
 Project Readme

peeper.js

peeper.js lets you bind dom elements to text inputs with one simple assignment: data-source="[input id]"

Usage

First make sure to include the library along with jquery:

<script src="jquery.js" type="text/javascript"></script>
<script src="peeper.js" type="text/javascript"></script>

Then simply assign the id of the watched input to the peeper's data-source attribute.

<input type="text" id="observed_field" />
<span data-source="observed_field">placeholder text</span>