Created
January 12, 2012 22:06
-
-
Save garyt/1603438 to your computer and use it in GitHub Desktop.
xsl input with attributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input id="webSearchInput" value="Press Enter to search..." name="query" type="text"> | |
<xsl:attribute name="onblur"> | |
<xsl:text>if (this.value == '') {this.value = 'Press Enter to search...';}</xsl:text> | |
</xsl:attribute> | |
<xsl:attribute name="onfocus"> | |
<xsl:text>if (this.value == 'Press Enter to search...') {this.value = '';}</xsl:text> | |
</xsl:attribute> | |
</input> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment