-2
comment changer la couleur du texte de l'indice jquery. Actuellement, c'est la même couleur que le champ de texte, mais je voudrais qu'il soit différent!comment changer la couleur de jquery hint
$(document).ready(function() {
//Shows the title in the text box, and removes it when modifying it
$('input[title]').each(function (i) {
$(this).val($(this).attr('title')).addClass('hint');
$(this).focus(function() {
if ($(this).val() == $(this).attr('title')) {
$(this).val('').removeClass('hint');
}
});
$(this).blur(function() {
if ($(this).val() == '') {
$(this).val($(this).attr('title')).addClass('hint');
}
});
});
//Clear input hints on form submit
$('form').submit(function() {
$('input.hint').val('');
return true;
});
});
Si vous cherchez à le style de la attribut de titre que vous ne pouvez pas. – j08691