0
Je veux me débarrasser de "TypeError: $(...).live is not a function"
erreur. Le code est ci-dessous, j'ai essayé mais je n'ai pas réussi à le réparer.Comment faire pour convertir .live() en .on()
$(".search-text input[data-default], .gdlr-comments-area input[data-default]").each(function() {
var t = $(this).attr("data-default");
$(this).val(t), $(this).live("blur", function() {
"" == $(this).val() && $(this).val(t)
}).live("focus", function() {
$(this).val() == t && $(this).val("")
})