Select whole query on click.