Created
January 30, 2012 10:03
-
-
Save xerxesb/1703659 to your computer and use it in GitHub Desktop.
Dynamic checkboxes in a table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Given a list of table rows, I want to prepend (or append) a blank checkbox which i'll use to | |
// check off as i go through the rows one by one....this should work on the netbank site. | |
// the idea is to just keep this as a bookmarklet and run it when looking at my transaction list | |
// When running the snip below chrome complains "Uncaught Error: NOT_FOUND_ERR: DOM Exception 8" | |
javascript:$('#transactionsTableBody > tr').map(function() { this.appendChild($('<td><input type="checkbox" /></td>')) }) |
jquery is a cross-browser dom manipulation library, so if you're
manipulating the dom it is a good choice.
On Tue, Jan 31, 2012 at 7:53 PM, Xerxes Battiwalla < ***@***.*** > wrote:
yep. thats the updated version (see above) from OJ.
Out of curiosity - any reason why its preferable that way?
---
Reply to this email directly or view it on GitHub:
https://gist.github.com/1703659
##
Liam McLennan.
[email protected]
http://www.eclipsewebsolutions.com.au
yeah makes sense - thanks :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yep. thats the updated version (see above) from OJ.
Out of curiosity - any reason why its preferable that way?