• This repository has been archived on 10/Mar/2023
  • Stars
    star
    123
  • Rank 290,145 (Top 6 %)
  • Language
    JavaScript
  • Created almost 15 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

yet another placeholder plugin™

HTML5 placeholder plugin, version 1.01

Copyright (c) 2010-2014, Rene Pot, https://github.com/Topener/

Thanks to Mike Taylor, http://miketaylr.com for setting up initial version

MIT Licensed: http://www.opensource.org/licenses/mit-license.php

Enables cross-browser html5 placeholder for inputs, by first testing for a native implementation before building one. Special thanks to Ben Alman (http://benalman.com/) for suggesting a number of improvements.

The general strategy is one of adding a "position: absolute" label on top of the input element.

Known Issues

Firefox pre-filling input items causes issues. A possible workaround is to also set autocomplete=false on the input element(s) in question, if this makes user experience sense to do so (e.g. perhaps on a search box, but not the username field).

USAGE:

$('input[placeholder]').placeholder();

$('input[placeholder]').placeholder({ color: '#bada55' });

$('input[placeholder]').placeholder({ inheritStyle: true /*no default styles will be applied*/ });

<input type="text" placeholder="username">

More Repositories

1

nl.fokkezb.pullToRefresh

Widget to implement a table pull-to-refresh header in Titanium Alloy
JavaScript
184
star
2

XHR

Super awesome HTTP Client for Appcelerator Titanium :)
JavaScript
172
star
3

nl.fokkezb.infiniteScroll

Alloy widget for infinitive scrolling TableViews and ListViews
JavaScript
133
star
4

titanium-modules

The extensive list of good Titanium Modules!
53
star
5

To.BounceView

A bouncing view widget for Titanium
JavaScript
49
star
6

To.ImageCache

A simple CommonJS module for Titanium to cache images a little less temporarily, and configurable
JavaScript
27
star
7

staballoy

Reactive UI framework for Titanium Alloy
JavaScript
18
star
8

ti.detect

A simple Titanium library which detects things for you
JavaScript
15
star
9

awesome-adventofcode

An Awesome List of AdventOfCode Participants
12
star
10

ti.chatwidget

A widget for adding chat to your Titanium app
JavaScript
9
star
11

adventofcode

JavaScript
8
star
12

KnockoutJS-i18n

A simple KnockoutJS i18n module
JavaScript
7
star
13

titanium_ios_drawer

A drawer sample app for iOS
JavaScript
4
star
14

jQuery.dataformValidate

Validate a form based on html5 data attributes.
JavaScript
4
star
15

no-profanity

A JavaScript package to filter and detect profanity
JavaScript
4
star
16

BikeShare

Open Source BikeShare app made in Titanium
JavaScript
3
star
17

ti.gamedevkit

A collection of libraries for gamedevelopment purposes
JavaScript
3
star
18

ti.dbutil

A Titanium utility library to help with transactional queries
JavaScript
3
star
19

authenticatedImageView

Simple code to demo extending imageviews in Titanium
JavaScript
3
star
20

alloy-livestream

The app made on livestream demonstrating alloy features
JavaScript
2
star
21

LivestreamListView

The app as demo'd during the Titanium Livestream Nov-15th 2018
JavaScript
1
star
22

to.cachedimageview

A module to get an imageview with configurable cache
JavaScript
1
star