jQuery addClass example
Change class name on click in jQuery
by rluuan
HTML
<button class='button'>ok</button>
<input type="text" class="add">
JavaScript
$(function() {
$('.button').on('click', function() {
$('.add').click();
$('.add').focus();
alert('add working');
})
})