Ideally, your checkboxes have a value equal to the text you want to search for.
So you can use the jQuery queries
$("input[type='checkbox'][value*='Teste']")
For example
Look at the operator *= of the query, this is the same as "contains" or it looks for any part of your string. If you wanted it to be exactly the same text, use =.
Example in findler: https://jsfiddle.net/aLusvy63/
Edited
In case of using the data-text would be
$("input[type='checkbox'][data-text*='texto']")
More information about jQuery selectors on https://api.jquery.com/category/selectors/
cool, instead of putting text equal to id, can I use a date attribute ? example data-text="CA" ? if yes, how would it look?
– henriquedpereira
@Henriquedpereira see my reply issue.
– Erick Gallani
very good, that’s what I wanted, vlw.
– henriquedpereira