hi
I use below codes that when users click on textbox it will show tooltip:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
var hasToolTip =false;
$('#TxtPrice2').on({
"click": function() {
hasToolTip = true;
$(this).tooltip({ items: "#TxtPrice2", content: "Displaying on click" });
$(this).tooltip("open");
},
"mouseout": function() {
if(hasToolTip)
{
$(this).tooltip("disable");
hasToolTip = false;
}
}
});
});
</script>
<asp:TextBox ID="TxtPrice2" runat="server" CssClass="txtvadi2" class="form-control" placeholder="TxtPrice2" required="required"></asp:TextBox>
now I want to use it for 2 textboxes how I can do it?
Best regards
Neda