Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-11-2012, 08:43 AM #1
- Join Date
- Jul 2012
- Thanked 0 Times in 0 Posts
JQuery Visualize Plugin - Help changing chart type
This is the source I am referring to:
Note: The source in the link DOES update exactly as I want it to. However, as you can see it effects every table in my page, and makes them editable. This is a problem because the user can edit the title of a row! Basically I want what the function does, but I understand that it is only updating as the user edits a table.
So I assume I am looking for some sort of onChange element to apply to it. Since I already have a function that will be changing the HTML table, I just need to update the chart...onChange...rather than onClick when the editable chart it clicked?
I know this is basically all Jquery but I would guess some of you have some sort of experience with this. Anything to steer me in the right direction would be helpful. Thanks!
07-11-2012, 03:50 PM #2
- Join Date
- Jan 2011
- Thanked 789 Times in 787 Posts
Your jquery IS operating on ALL tables because of this = $('table') and $('table td')
Give the table you want to control an ID [let's say ID="editable"] and use $('table#editable') and $('table#editable td')
See if that works.