Here is a js fiddle example:
HTML:
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<div>
<button class="buttons">d</button>
<button class="buttons">o</button>
<button class="buttons">g</button>
<button class="buttons">s</button>
</div>
<button id="next">Next</button>
JS:
$(document).ready(function () {
$('input').click(function(){
$(this).addClass('active').siblings('.active').removeClass('active')
});
$(".buttons").click(function () {
var cntrl = $(this).html();
$('input.active').val(cntrl);
});
$( "#next" ).click( function() {
alert("When user clicks next button I would like the input from all 4 textboxes strung together into a word and alerted---like 'dogs' in this example");
});
});
How can I 'string' together the characters from each textbox to alert the word 'dogs' for instance in this example?