Created
June 13, 2014 22:28
-
-
Save premchandpl/3e912523807c211bc156 to your computer and use it in GitHub Desktop.
Get version data
This file contains hidden or 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
| var $div = $('<div>'); | |
| $div.load('Site collection path/Lists/ListName/DispForm.aspx?ID=265&VersionNo=1024 table.ms-formtable', function(){ | |
| var table = $(this).find('table.ms-formtable'); | |
| var tr = $(table).find('tr'); | |
| $(tr).each(function(){ | |
| var row = $(this); | |
| var columnName = $.trim(row.find('td:eq(0)').text()); | |
| var columnValue = $.trim(row.find('td:eq(1)').text()); | |
| console.log(columnName); | |
| console.log(columnValue); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment