Created
February 27, 2020 15:27
-
-
Save diasjorge/2c2f023d42b24f6f6f74e4435d5c43e9 to your computer and use it in GitHub Desktop.
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
//Get dns records | |
results = [] | |
$('form[name="existing"] .clientareatableactive').each(function(i,e) { | |
var inputs = e.querySelectorAll('input,select'); | |
console.log(e.innerHTML) | |
results.push({ | |
data: inputs[4].value, | |
type: inputs[1].value, | |
record_ttl: inputs[2].value, | |
host: inputs[0].value, | |
mx_priority: inputs[3].value | |
}) | |
}) | |
JSON.stringify(results) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment