javascript - How to concatenate 3 dynamic value text boxes and move them to clipboard -
sas per title i'm trying concatenate 3 textboxes have dynamic values based on radio button presses. i'm new html , java have literally been self teaching off google come it's messy. code far follows:
<input type="radio" name="r3" onclick="myfunction2(this.value)" value="ca$!">only want talk case owner<br> <input type="radio" name="r3" onclick="myfunction2(this.value)" value="vo$!">transfer voicemail<br> <input type="radio" name="r3" onclick="myfunction2(this.value)" value="em$!">no eos entry required<br> <input type="radio" name="r3" onclick="myfunction2(this.value)" value="na$!">n/a<br><br> <input type="text" id="result2"> </form>
here small exerpt of how 1 part of code works. rest in jsfiddle.
i've tried referencing id javascript won't update think i'm getting syntax wrong. being done in notepad (not access notepad++ or better)
thank much, please let me know if can provide more information.
automatically copy clipboard dangerous. can following instruction stackoverflow post concatenate of text , let users manually.
how copy clipboard in javascript?
i have little jsfiddle link here
function copytoclipboard() { var result1=document.getelementbyid("result1").value, result2=document.getelementbyid("result2").value, result3=document.getelementbyid("result3").value, text=result1 + result2+ result3; window.prompt("copy clipboard: ctrl+c, enter", text); }
Comments
Post a Comment