how to get element by data attribute in jquery code example Example: jquery find div with data attribute value $("body").find("[data-searchme='" + var_value + "']");