Click here to Skip to main content
14,766,249 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I used the below code:

var name = $(this).attr('id'); -------- 1
document.getElementById('<%=txtShareMessage.ClientID %>').value = name; --------2

when i used this code i got value assigned from the 1st statement to the name variable, but when i tried to bind the value to a textbox in the 2nd statement, it is not getting bound : because the textbox is in a repeator. Please tell me how can i resolve this problem?

Updated 3-Jul-14 3:07am

var name = $(this).attr('id');
$('<%=txtShareMessage.ClientID %>').val(name);
Member 10226004 3-Jul-14 6:15am
still it's not binding
Member 10226004 3-Jul-14 6:15am
because textbox is in repeator

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900