Input onClick functionality