javascript - Delete Result input if both values from other inputs are not in it -
please edit title if have better. couldn't think of way this. in short, have 2 form field values going resultcell element. this works, need delete result text if doesn't have both values of cellinput , cellselection in it. any appreciated. html <input type='text' id='cellinput'/> <select id='cellselection'> <option value='@tmomail.next'>tmobile</option> <option value='@vzwireless.com'>verizon</option> </select> <input type='text' id='resultcell'> javascript var cellin = document.getelementbyid('cellinput'); var dropdown = document.getelementbyid('cellselection'); var textbook = document.getelementbyid('resultcell'); dropdown.addeventlistener('change', function(){ textbook.value = cellin.value + dropdown.value; }); you need check length of input , ensure isn...