Hello,
I have an interactive grid table. Columns, that are using values from a list, are solved this way:
Markup:
- <td id="..1"><div class="select">....</div></td>
- <td id="..2"><div class="select">....</div></td>
- <td id="..3"><div class="select">....</div></td>
jQuery:
- $('div.select').click(function() {
- .
- var selDiv = this;
- $(selDiv).hide();
- $('#selectbox').show().change(function() {
- ...
- $('#selectbox').hide();
- $(selDiv).show();
- });
- });
FIRST use - click & select box change - passes perfectly. Second change works - but the past field changes too. With the third field change simultaneously changes the second and the first cell - and so on. Can anybody explain me why ?
Thanks in advance