if button clicked set selected jquery code example Example: jquery on input $('input').on('input propertychange', ()=>{});