Skip to content

Instantly share code, notes, and snippets.

@akshuvo
Created April 21, 2022 16:52
Show Gist options
  • Save akshuvo/3196f447bb6c7cc4f915972e80beea15 to your computer and use it in GitHub Desktop.
Save akshuvo/3196f447bb6c7cc4f915972e80beea15 to your computer and use it in GitHub Desktop.
Paste this code in browser console.
// Check radio values 5
var toCheck = document.querySelectorAll('[value="5"]');
toCheck.forEach(function(el, i){
el.checked = true;
});
// Check radio values 10
var toCheck = document.querySelectorAll('[value="10"]');
toCheck.forEach(function(el, i){
el.checked = true;
});
// Textarea value
var textareaText = document.querySelectorAll('[name="txtTEComments"]');
if( textareaText.length ) {
textareaText[0].value = "Outstanding Experience"
}
// Submit
var submitBtn = document.querySelectorAll('[type="submit"]');
if( submitBtn.length ) {
submitBtn[0].click()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment