in my web i have many button that javascript for managing click function. Every button click has class for initial each of them. here the code
<script type="text/javascript">
$(document).ready(function(){
$(".data1").click(function(){
$("#line").val("1");
$("#pkategori").val("-Kategori Produk-");
$("#pname").val("-Nama Produk-");
$("#pnumber").val("");
$("#seri").val("");
$("#quantity").val("");
$("#ok").hide();
$("#cancel").hide();
$("#tnposisi").hide();
$("#nposisi").hide();
$("#tketp").hide();
$("#ketp").hide();
$("#tpjumlah").hide();
$("#pjumlah").hide();
$("#editsave").hide();
$("#editcancel").hide();
$("#input").hide();
$("#loading").hide();
$("#status").html("");
});
});
for my current web, i make this one by one until $(".data160").click(function(). it will be long code and not effective. My problem, How tomake this a simple code?