it may use label or other
How to show a label with a click in a textbox
to show some message on clicking the textbox
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 28, 2012, 10:56 PM EDT
Use jQuery for that
add a CSS class called TxtMyTextbox to Textbox and LblMyLabel
$(document).ready
(
function()
{
$('.TxtMyTextbox').click
(
function()
{
var textboxvalue=$(this).attr('value');
$('.LblMyLabel').text("Hello world");
}
);
}
);
Check this is correct answer if it helped