mercredi 1 juillet 2015

How to concatenate 3 dynamic value text boxes and move them to clipboard

sas per my title i'm trying to concatenate 3 textboxes that have dynamic values based on radio button presses. I'm very new to HTML and Java so have literally been self teaching off google to come up with this so it's probably messy. The code so far is as follows:

http://ift.tt/1H1tXFb

<input type="radio" name="r3" onclick="myFunction2(this.value)" value="CA$!">Only want to talk to case owner<br>
<input type="radio" name="r3" onclick="myFunction2(this.value)" value="VO$!">Transfer to 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 is just a small exerpt of how 1 part of the code works. The rest is in the jsfiddle.

I've tried referencing the ID with Javascript but it won't update so I think i'm getting the syntax wrong. This is all being done in notepad (not access to notepad++ or anything better)

Thank you very much, please let me know if I can provide more information.

Aucun commentaire:

Enregistrer un commentaire