i seem to repeat alot of functions when coding something simple, is there a better way of doing this?
$('#bt1').click(function() {
$('#txt1').show();
$(this).css("background-image", "url(site_images/08/btn_over.png)");
});
$('#bt2').click(function() {
$('#txt2').show();
$(this).css("background-image", "url(site_images/08/btn_over.png)");
});
$('#bt3').click(function() {
$('#txt3').show();
$(this).css("background-image", "url(site_images/08/btn_over.png)");
});
$('#bt4').click(function() {
$('#txt4').show();
$(this).css("background-image", "url(site_images/08/btn_over.png)");
});
so that i'm not repeating code?