<asp:TextBox ID="Template1TxtTo" runat="server" CssClass="sample-text-01" text="template1" placeholder="To...">
<asp:TextBox ID="Template1TxtFrom" runat="server" CssClass="sample-text-02" text="template2" placeholder="from...">
Suppose u have text attributes on both of the templates. Now, u have to show their respective msg on Label on click of either template.
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" language="javascript">
$(function(){
$("#<%=Template1TxtTo.ClientID%>").click(function(){
var msg = $(this).attr('text');
$("#<%=lblTempolateTextInformation.ClientID").text(msg);
});
$("#<%=Template1TxtFrom.ClientID%>").click(function(){
var msg = $(this).attr('text');
$("#<%=lblTempolateTextInformation.ClientID").text(msg);
});
});
Try this, hope this will helps you...