Hi
Firstly merry Christmas to one and all. Now here is my problem. I am using a checkbox to gather values from a Datatable and into an array. What is happening is that only the first value is being evaluated when passed to dialog. I am not sure if I have to use $.each function in the ‘rowClk’ event or some other method.
I would be grateful if someone could offer some help as to what i need to do in order to process all items. Many thanks
Hi paul
Sorry only working localhost. What I am trying to is:
Get the value from the table
Put them into an array
Pass this array to dialog
However, I am only getting the first value so I am guessing I may need a $.each loop somewhere in the #rowClk event? I am fairly new to js and jquery so learning as I go. Many thanks
With JavaScript, each id attribute is supposed to be unique.
When you ignore that and use the same id name with multiple identifiers, only the first one is ever picked.
However, jQuery has some ways around that, so my initial thoughts on the matter don’t seem to be relevant in this case. Which means, that not enough information is yet available to be able to assist any further.
Can you put together a demo page that we can explore, so that a more detailed investigation can occur?
From what I’ve seen, that can’t be done because it’s out of scope. There might be some other way, but I am awaiting a demo before further such information might be divulged.