Radio box value in input textbox
Hi;
I have three buttons, i want the content of any clicked button to be shown in the text input as value. Here is a working example
here
but i don't figure to reproduce it in this case especially with div. I am using jQuery 1.9.
Thank you.
The three buttons :
- <div id="myradiobutton" class="btn-group" data-toggle="buttons-radio">
- <button type="button" class="btn btn-primary">Left</button>
- <button type="button" class="btn btn-primary">Middle</button>
- <button type="button" class="btn btn-primary">Right</button>
- </div>
The input text :
- <input id="myinput" type="text"/>