User:Chairboy/csdhelper.js

if (document.getElementById('deleteconfirm')) {	var parent_form	= document.getElementById('deleteconfirm'); var par 	= document.getElementById('wpReason'); var newhelper	= document.createElement('select'); newhelper.setAttribute('id','csdhelper'); newhelper.setAttribute('onChange','document.getElementById(\'wpReason\').value = document.getElementById(\'csdhelper\').value;'); newhelper.innerHTML = 'G1 - Nonsense A1 - No context A7 - Non-notable '; parent_form.appendChild(newhelper); }