I use jQuery to hide form fields (I manipulate checkboxes and radio buttons).
In FF and Chrome, when I click the appropriate label, the form field is still activated and validated. In IE, this does not happen.
How can I set checkbox / radio shortcuts in IE?
I also experienced it. You might be better off moving hidden fields off the screen rather than hiding them.
Actually, I asked this question on SO:
IE - hidden switch is not checked when you click on the corresponding label
? , - css:
.hidden { position:relative; left: -10000 }
.hidden, / .
.hidden
. IE . . , - onclick , . - :
$("label.hideablefield").live('click', function(){ var fid = $(this).attr('for'); $('#'+ fid).show(); $('#'+ fid).select(); //or maybe .focus, I'm not sure });
, . / .
Source: https://habr.com/ru/post/1732040/More articles:Configure JAXB 2.0 generated method names from xsd element: choice - javaGiving a hint problem - pythonStrange problem with ghostscript and pdf files - pdfXPCOM Shockwave Flash C ++ - c ++Method overloading and promotion of code duplication - c #Why does ShGetFolderPath return nil when a folder exists on some Vista computers - delphiRack-Bug panels do not appear in Rails application - debuggingIs this login scheme safe? - loginAutomatically set parent link for child elements - c #Rack installation error. Server does not start - profilingAll Articles