[JavaScript + jQuery?] Litle problem for beginner.

[JavaScript + jQuery?] Litle problem for beginner.

Hi, at first i would like to sorry for my english...

So, my problem looks like this:

function zamiana(str)

{

   var tablica1=new Array("a", "e");

   var tablica2=new Array("ah","eh");



   str = str.replace(tablica1, tablica2);

}
$(document).ready(function() {
$('#jeden').keyup(function() {
zamiana(('value');
$('#dwa').html($("#jeden").attr('str'));
});
});


I'd like to change 'a' and 'e', for 'ah' and 'eh', i dont know how to do this, is this script OK?
I started interesting jQuery yesterday, i really need help because i cant find nothing in the internet about strings in jQuery.

Thanks and please try understand me!