This is working for me. But I'm not sure if .attr addes value
$(function() {
$("input.upb").change(function (){
var fileName = $(this).val();
$(".added").html("Selected file(s) was added successfully").css("color","darkgreen").attr("id", "added");
});
});
Is this statement misspelled?
$(function(){
if($("input.upb").attr("id")=='added'){
$("input.post").click(function (){
$(".post").attr("value","Uploading ...");
$(".progressbar").css("opacity", 1);
});
}});
If statement not working :-(
Aucun commentaire:
Enregistrer un commentaire