Note that there are some explanatory texts on larger screens.

plurals
  1. POInput does not get checked in IE8
    primarykey
    data
    text
    <p>I need to find a way on how to sort it out this issue with IE8</p> <p>I have a table with my columns and rows</p> <pre><code>&lt;table&gt; &lt;thead&gt; &lt;tr class="body"&gt; &lt;th class="checkbox"&gt;&lt;input class="forecast first" name="1" type="checkbox"&gt;&lt;/th&gt; &lt;th class="checkbox"&gt;&lt;input class="forecast second" name="2" type="checkbox"&gt;&lt;/th&gt; &lt;th class="checkbox"&gt;&lt;input class="forecast third" name="3" type="checkbox"&gt;&lt;/th&gt; &lt;th class="checkbox"&gt;&lt;input class="forecast any" name="any" type="checkbox"&gt;&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr class="body"&gt; &lt;td class="checkbox"&gt;&lt;input class="forecast first" name="1" type="checkbox"&gt;&lt;/td&gt; &lt;td class="checkbox"&gt;&lt;input class="forecast second" name="2" type="checkbox"&gt;&lt;/td&gt; &lt;td class="checkbox"&gt;&lt;input class="forecast third" name="3" type="checkbox"&gt;&lt;/td&gt; &lt;td class="checkbox"&gt;&lt;input class="forecast any" name="any" type="checkbox"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr class="body"&gt; &lt;td class="checkbox"&gt;&lt;input class="forecast first" name="1" type="checkbox"&gt;&lt;/td&gt; &lt;td class="checkbox"&gt;&lt;input class="forecast second" name="2" type="checkbox"&gt;&lt;/td&gt; &lt;td class="checkbox"&gt;&lt;input class="forecast third" name="3" type="checkbox"&gt;&lt;/td&gt; &lt;td class="checkbox"&gt;&lt;input class="forecast any" name="any" type="checkbox"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>Inside my columns there are my input checkbox which work with the following combinations:</p> <pre><code>oncheck: function(checkbox) { if ($(checkbox).prop("checked")) { // checking if ($(checkbox).hasClass('first')) { $('.forecast[value="' + checkbox.value +'"]').prop("checked", false); // unmarking checkboxes in this row $('.forecast.first').prop("checked", false); // unmarking checkboxes in this column $('.forecast.any').prop("checked", false); // unmarking checkboxes in Any order column $(checkbox).prop("checked", true); } if ($(checkbox).hasClass('second')) { if ($('.forecast.first[value!="' + checkbox.value + '"]:checked').length &gt; 0 ) { $('.forecast.second').prop("checked", false); // unmarking checkboxes in this column $('.forecast.third[value="' + checkbox.value +'"]').prop("checked", false); // unmarking 3rd checkboxes in this row $(checkbox).prop("checked", true); } else { $(checkbox).prop("checked", false); } } if ($(checkbox).hasClass('third')) { if ($('.forecast.first[value!="' + checkbox.value + '"]:checked').length &gt; 0 &amp;&amp; $('.forecast.second[value!="' + checkbox.value + '"]:checked').length &gt; 0) { $('.forecast.third').prop("checked", false); // unmarking checkboxes in this column $(checkbox).prop("checked", true); } else { $(checkbox).prop("checked", false); } } if ($(checkbox).hasClass('any')) { // unmarking checkboxes in columns : 1st 2nd 3rd $('.forecast.first').prop("checked", false); $('.forecast.second').prop("checked", false); $('.forecast.third').prop("checked", false); $(checkbox).prop("checked", true); } } else { if ($(checkbox).hasClass('first')) { $('.forecast').prop("checked", false); // unchecking all } if ($(checkbox).hasClass('second')) { $('.forecast.third').prop("checked", false); // unchecking all third class } } } }; </code></pre> <p>This means basically that:</p> <ul> <li><p>The input in the second column can be checked only when the input in the first column is checked, and the input in the third column can be checked only when the input in the second column is checked</p></li> <li><p>All the input can not be checked in the same row, but only an input for row</p></li> <li><p>When the input any is checked , all the others inputs get unchecked</p></li> </ul> <p>Everything works well in any browser (Safari, Chrome and IE 10 and 9) a part <strong>from IE8 where i can not check my first input</strong>.</p> <p>Obviously the problem is coming from the script, i need some tips on how to work around it.</p> <p>Just for more infos previously instead of <code>prop</code> i use <code>attr</code> and it was not working at all in IE.</p> <p>All the recommendations, i thought that maybe i can hack up with some js just for ie8</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload