2

I am using set value with jquery but i couldn't get value from label jquery code is here

    $(document).ready(function() {
        $("input:radio[name=paketler]").click(function () {
            var value = $(this).val();
            $('#<%=lblradio.ClientID%>').html(value);
        });
    })

i used hiddenfield,.val(),.text() but i am seeing text value on label but i couldn't get value in codebehind. can you help me ? how can i get value in codebehind.

Nikhil Vaghela
  • 2,088
  • 2
  • 15
  • 30

1 Answers1

0

try :

$('#' +'<%=lblradio.ClientID %>').val(value);

or

$('#<%=lblradio.ClientID %>').val(value);
Mohammad
  • 21,175
  • 15
  • 55
  • 84
Romero
  • 53
  • 5