org.apache.myfaces.custom.inputTextHelp.resource.inputTextHelp.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tomahawk Show documentation
Show all versions of tomahawk Show documentation
JSF components and utilities that can be used with any JSF implementation.
This library is compatible with both JSF1.1 and JSF1.2; however for JSF1.2 users there
is an alternative build of Tomahawk available that takes advantage of JSF1.2 features to
offer some additional benefits.
function resetHelpValue(helpText, id)
{
var element=document.getElementById(id);
if(element.value==helpText)
{
element.value="";
}
}
function selectText(helpText, id)
{
var element=document.getElementById(id);
if(element.value==helpText)
{
element.select();
}
}