Skip to content

Instantly share code, notes, and snippets.

@diasjorge
Created February 27, 2020 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diasjorge/2c2f023d42b24f6f6f74e4435d5c43e9 to your computer and use it in GitHub Desktop.
Save diasjorge/2c2f023d42b24f6f6f74e4435d5c43e9 to your computer and use it in GitHub Desktop.
//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