I created a page using pure jquery's tooltip feature:
Page:
<apex:page standardController="account" showHeader="false" extensions="Account_controller">
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" />
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js" />
<apex:styleSheet value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/themes/smoothness/jquery-ui.css" />
<script>
var $j = jQuery.noConflict();
$j(".uitip").tooltip();
function getselected(){
var selectedval = $j("#selectlist option:selected").text();
$j("input[id$='selected_val']").val(selectedval);
}
</script>
<apex:form >
<apex:pagemessages ></apex:pagemessages>
<apex:pageblock >
Account source : <select class='uitip' id="selectlist">
<apex:repeat value="{!Accountsources}" var="src">
<option title="{!titlemap[src]}">{!src}</option>
</apex:repeat>
</select>
<apex:pageBlockSection >
<apex:outputText value="Selected Option is: {!selectedOptionValue}" rendered="{!NOT(ISBLANK(selectedOptionValue))}"></apex:outputText>
<br/>
<apex:commandButton id="selectedbutton" value="selectedvaldisplay" onclick="getselected();"/>
<apex:inputHidden value="{!selectedOptionValue}" id="selected_val"/>
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page><apex:page standardController="account" showHeader="false" extensions="Account_controller">
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" />
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js" />
<apex:styleSheet value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/themes/smoothness/jquery-ui.css" />
<script>
var $j = jQuery.noConflict();
$j(".uitip").tooltip();
function getselected(){
var selectedval = $j("#selectlist option:selected").text();
$j("input[id$='selected_val']").val(selectedval);
}
</script>
<apex:form >
<apex:pagemessages ></apex:pagemessages>
<apex:pageblock >
Account source : <select class='uitip' id="selectlist">
<apex:repeat value="{!Accountsources}" var="src">
<option title="{!titlemap[src]}">{!src}</option>
</apex:repeat>
</select>
<apex:pageBlockSection >
<apex:outputText value="Selected Option is: {!selectedOptionValue}" rendered="{!NOT(ISBLANK(selectedOptionValue))}"></apex:outputText>
<br/>
<apex:commandButton id="selectedbutton" value="selectedvaldisplay" onclick="getselected();"/>
<apex:inputHidden value="{!selectedOptionValue}" id="selected_val"/>
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page>
controller:
public class Account_controller {
public string selectedOptionValue{get;set;}
public map<string,string> titlemap{get;set;}
public Account_controller(ApexPages.StandardController controller) {
titlemap = new map<string,string>();
}
public List<String> getAccountsources()
{
List<String> options = new List<String>();
Schema.DescribeFieldResult fieldResult =
Account.Accountsource.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
for( Schema.PicklistEntry f : ple)
{
options.add(f.getValue());
}
for(string opt:options){
titlemap.put( opt,'your choice is :'+opt);
}
return options;
}
}public class Account_controller {
public string selectedOptionValue{get;set;}
public map<string,string> titlemap{get;set;}
public Account_controller(ApexPages.StandardController controller) {
titlemap = new map<string,string>();
}
public List<String> getAccountsources()
{
List<String> options = new List<String>();
Schema.DescribeFieldResult fieldResult =
Account.Accountsource.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
for( Schema.PicklistEntry f : ple)
{
options.add(f.getValue());
}
for(string opt:options){
titlemap.put( opt,'your choice is :'+opt);
}
return options;
}
}
output:
