javascript - Internet Explorer 8 get value of Radiobutton -


I'm googling for about 2 hours to fix the following problem (other Stackoverflow questions are included): < / P> & Lt; Input type = "radio" name = "lightType" value = "tube" / & gt;

As you can see, I'm just trying to retrieve the current value of the radio button group "LightType" to work with it. This is Firefox / Safari / Chrome I'm working like a magic in, but IE8 is giving me a hard time by returning an empty string.

I have already tried several hacks from other questions like compelling the incident of change in radio buttons and blurting the radio buttons clicked on IE8 and setting it on fire. Maybe I'm suffering from blindness right now.

I am working with the latest jQuery version and I've ensured that no other tied events interfere. Interestingly, however, adding a warning () before receiving the value and IE returns the current value:

 . // DO job alerts (); Warning (jQuery (this) .val ()); // Warning eg "Tube" // Warning does not work (jQuery (this) .val ()); // Alert ""   

I thought this might be a one-time problem, but did not help in trying to delay my single alert call with setTimeout.

Thanks to the people in advance, I hope I am blind and I did not find another ugly behavior in IE8.

I will use the selector in the latest jQuery and callback:

  (Function ('Change Blur Mousseudown Click') {Warning (jQuery ('Input [type = "Radio"] (jQuery (' input [type] = 'radio "]' ]: Checked '). Val ());});}); Actually it's a bit difficult, you can not bring the selected radio button with "this" in the callback using any other selector:   

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -