select input search when clicking

select input search when clicking

silenssilens Posts: 101Questions: 40Answers: 0
edited December 2018 in Free community support

I would like you to click on a search field of the table, select the value that you entered. the same thing that does when pressing double click
I tried this but it does not work


function selected(){ //Selecciona un campo con un solo click $("input[type='text']").off("click"); $("input[type='text']").on("click", function () { $(this).select(); }); $("input[type='search']").off("click"); $("input[type='search']").on("click", function () { $(this).select(); }); $("input[type='number']").off("click"); $("input[type='number']").on("click", function () { $(this).select(); }); }

Answers

This discussion has been closed.