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:

http://jsfiddle.net/jkxbwlwt/

<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); } 

https://jsfiddle.net/dshun/jkxbwlwt/11/


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -