Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is a start, there are some areas that I am sure you can improve upon:</p> <p><a href="http://jsfiddle.net/5ueYw/6/" rel="nofollow">http://jsfiddle.net/5ueYw/6/</a></p> <p>HTML</p> <pre><code>&lt;table id="inbTB"&gt; &lt;thead&gt; &lt;tr class="head"&gt; &lt;th class="sortH alignCenter smSelN header"&gt;#&lt;/th&gt; &lt;th class="sortH alignLeft header headerWidth " nowrap="nowrap"&gt;Name&lt;/th&gt; &lt;th class="sortH alignLeft header smSelR"&gt;&lt;tag:lang.stats /&gt;Status&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr class="sortRow"&gt; &lt;td class="alignCenter"&gt;#1&lt;/td&gt; &lt;td class="alignLeft upCase"&gt;One&lt;/td&gt; &lt;td class="alignCenter"&gt; &lt;select class="stSel smSelR smSelRInput"&gt; &lt;option value="0"&gt;New&lt;/option&gt; &lt;option value="1"&gt;Completed&lt;/option&gt; &lt;option value="2"&gt;Canceled&lt;/option&gt; &lt;/select&gt; &lt;div class="loader" style="display:none;"&gt;loading...&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr class="sortRow"&gt; &lt;td class="alignCenter"&gt;#2&lt;/td&gt; &lt;td class="alignLeft upCase"&gt;Two&lt;/td&gt; &lt;td class="alignCenter"&gt; &lt;select class="stSel smSelR smSelRInput"&gt; &lt;option value="0"&gt;New&lt;/option&gt; &lt;option value="1"&gt;Completed&lt;/option&gt; &lt;option value="2"&gt;Canceled&lt;/option&gt; &lt;/select&gt; &lt;div class="loader" style="display:none;"&gt;loading...&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr class="sortRow"&gt; &lt;td class="alignCenter"&gt;#3&lt;/td&gt; &lt;td class="alignLeft upCase"&gt;Three&lt;/td&gt; &lt;td class="alignCenter"&gt; &lt;select class="stSel smSelR smSelRInput"&gt; &lt;option value="0"&gt;New&lt;/option&gt; &lt;option value="1"&gt;Completed&lt;/option&gt; &lt;option value="2"&gt;Canceled&lt;/option&gt; &lt;/select&gt; &lt;div class="loader" style="display:none;"&gt;loading...&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>JS</p> <pre><code>$('.stSel').change(function(){ myselect = $(this); myloader = $(this).parent().children('.loader'); // Make sure we override animations that are already running, there is probably a // better way to do this. $('.stSel').show(); $('.loader').hide(); myselect.hide(); myloader.show(); setTimeout(function() { showme( myselect, myloader ); }, 2000) }); function showme(el, loader){ el.show(); loader.hide(); } </code></pre>
    singulars
    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