Sunday, May 17, 2015

ASP.NET Get radio button value in javascript

Radio button html

 <input type="radio" name="mxCard" id="mxcard" data-id="<%=mxcard.MxFormaterCreditCard%>" value="<%=mxcard.MxFormaterCreditCard%>" />  


get radio button value in java script


  var selectedVal = "";  
         var selected = $('input[type=radio][name=mxCard]:checked').val();  
         if (selected) {  
           // Do something  
           }  
         }  


Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...