0
vote against
Accept
$(Function () { $("td"). dblclick(Function () { var conteudOriginal = $(this). text();
$(this).addClass("celulaEmEdicao");
$(this).html("<input type='text' value='" + conteudoOriginal + "' />");
$(this).children().first().focus();
$(this).children().first().keypress(function (e) {
if (e.which == 13) {
var novoConteudo = $(this).val();
$(this).parent().text(novoConteudo);
$(this).parent().removeClass("celulaEmEdicao");
}
});
$(this). Children(). first(). Blur(Function(){
$(this). Parent(). text(conteudoOriginal);
$(this). Parent(). removeClass("cellulaEmEdical");
});
});
});
$(Function() { var text = $("#tableEditable td:Nth-Child(1) td:Nth-Child(6)"). text();
var result = (text);
if (result=="a"){ $("#idTd"). css("background","#FF0000"); }Else if(result=="b"){ $("#idTd"). css("background","#00FF00"); }Else if(result=="c"){ $("#idTd"). css("background","#0000FF"); }Else if(result=="d"){ $("#idTd"). css("background","#00FFFF"); }Else{ $("#idTd"). css("background","#ccc"); }
});
Explain your question better. Calendar in which excel, html?
– LeAndrade
html image is just to get an idea of how it will look
– Bruno Albuquerque
Okay, now post the code you’ve developed so far if possible to get more help.
– LeAndrade