isinya ada 3 inputan gaji, biar setelah diketik formatnya berubah jadi currency gmna ya gan?
<html xmlns="http://www.w3.org/1999/xhtml">
\t<head>
\t\t<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
\t\t<script type="text/javascript">
\t\t$(document).ready(function() {
\t\t\t///////call anything u want
\t\t\t//hitung gaji pertahun
\t\t\tfunction calc() {
\t\t\t\t$('#totalGaji'
.val(
\t\t\t\t\t((parseInt($('#gaji_bulan'
.val(), 10) || 0) + (parseInt($("#gaji_lain").val(), 10) || 0) - (parseInt($("#htg").val(), 10) || 0)) * 12
\t\t\t\t);
\t\t\t}
\t\t
\t\t$('#gaji_bulan'
.keyup(calc);
\t\t$("#gaji_lain").keyup(calc);
\t\t$("#htg").keyup(calc);
\t\t});
\t\t</script>
\t\t<link rel="stylesheet" href="library/css/reset.css" />
\t\t<link rel="stylesheet" href="library/css/main.css" />
\t\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
\t\t<title>Kalkulator Zakat</title>
\t</head>
\t<body>
\t\t<div id="main">
\t\t\t<div class="header-content">
\t\t\t\t\tI. Penghasilan/Pemasukan
\t\t\t</div>
\t\t\t<div class="container_element">
\t\t\t\t<div class="container_untuk_label">
\t\t\t\t\tPendapatan (Gaji/Perbulan)
\t\t\t\t</div>
\t\t\t\t<div class="container_untuk_form">
\t\t\t\t\t<input name="gaji_bulan" id="gaji_bulan" type="text" class="form-zakat" value=0 />
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class="container_element">
\t\t\t\t<div class="container_untuk_label">
\t\t\t\t\tPendapatan Lain-lain(/Bulan)
\t\t\t\t</div>
\t\t\t\t<div class="container_untuk_form">
\t\t\t\t\t<input name="gaji_lain" id="gaji_lain" type="text" class="form-zakat" value=0 />
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class="container_element">
\t\t\t\t<div class="container_untuk_label">
\t\t\t\t\tHutang/Cicilan (/Bulan)
\t\t\t\t</div>
\t\t\t\t<div class="container_untuk_form">
\t\t\t\t\t<input name="htg" id="htg" type="text" class="form-zakat" value=0 />
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class="container_element">
\t\t\t\t<div class="container_untuk_label">
\t\t\t\t\tTotal Gaji
\t\t\t\t</div>
\t\t\t\t<div class="container_untuk_form">
\t\t\t\t\t<input name="totalGaji" id="totalGaji" type="text" class="form-zakat" value=0 />
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<div class="footer">
\t\t\tcopyright 2012
\t\t</div>
\t</body>
</html>