By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,530 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,530 IT Pros & Developers. It's quick & easy.

passing row number from html table to javascript

P: 1
I have an html table, populated by a js array. My problem...I am trying to edit a row in the table/array and am having trouble figuring out how to get the html to pass the row data back to javascript so that I may edit the array and send the new information back to the html table. I'm at a total loss with this one and don't know where to start. I've found some code online, but it's not working. Help?
Thanks in advance.
Feb 24 '15 #1
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,293
without looking at any code that you have involved it's hard to give you a good advice. for an idea though: you may keep a reference from any table line to the original javascript array - with a key for instance - and update the array on the change events of the row's columns. but it all depends on your current 'populating solution'. it might have to be extended a bit and it even depends on the interaction that you want to have - like a modified and/or comitted state of the table and so on.
Feb 24 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.