Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to interpret css into jQuery?
    primarykey
    data
    text
    <p>I am using this css. But as IE7 and IE8 do not support <code>nth child</code> so I want to do it with jQuery so it work in all browser</p> <pre><code>#localFileCopyingDiv, #supplementaryMaterialsDiv, #assetsDiv, table tr td:nth-child(1 /*this is the column number*/){ text-align: center; width:30px } #localFileCopyingDiv, #supplementaryMaterialsDiv, #assetsDiv, table tr td:nth-child(2 /*this is the column number*/){ width:250px } #localFileCopyingDiv, #supplementaryMaterialsDiv, #assetsDiv, table tr td:nth-child(3 /*this is the column number*/){ width:250px } #localFileCopyingDiv, #supplementaryMaterialsDiv, #assetsDiv, table tr td:nth-child(4 /*this is the column number*/){ width:60px } #localFileCopyingDiv #supplementaryMaterialsDiv, #assetsDiv table tr td:nth-child(5 /*this is the column number*/){ width:220px } #courseInfoDiv table tr td:nth-child(1 /*this is the column number*/){ width: 200px; } #courseInfoDiv table tr td:nth-child(2 /*this is the column number*/){ width: 600px; } </code></pre> <p>How can I convert above css into jQuery?</p> <p>Thanks</p> <p><strong>EDIT:</strong> <strong>--------------------------------------------</strong></p> <pre><code> &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; &lt;title&gt;Status Report&lt;/title&gt; &lt;script type="text/javascript" src="javascript/jquery-1.9.1.min.js"&gt;&lt;/script&gt; &lt;!--[if (gte IE 6)&amp;(lte IE 8)]&gt; &lt;script type="text/javascript" src="javascript/selectivizr-min.js"&gt;&lt;/script&gt; &lt;noscript&gt;&lt;link rel="stylesheet" href="brands/default/en/css/exportComplete.css" /&gt;&lt;/noscript&gt; &lt;![endif]--&gt; &lt;script type="text/javascript" src="javascript/jquery-migrate-1.2.1.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" type="text/css" href="brands/default/en/css/exportComplete.css" /&gt; &lt;/head&gt; </code></pre> <p>Is it ok?</p>
    singulars
    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