Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- sayangnya saya bingung kl pake ajax.. tp ini
- yg mungkin bs dipake
- versi sederhananya
- */
- $(".doc").change(function () {
- var str = "";
- $(".doc option:selected").each(function () {
- id=$(this).val();
- //alert(id);
- });
- url2='index2.php?option=com_hrd&view=nilai&t=work&l=form&doc='+id+'&t1=<?=mktime();?>';
- $.get(url2, function(data) {
- $('.docEdit').html(data);
- });
- }).change();
- $("#cariItem").keyup(function(){
- pos=$("#cariItem").val();
- url= 'index2.php?option=com_ri&l=l&t=item ';
- /*
- $("#listItem").load(url);
- */
- $.post(
- url,
- {language: "php", version: 5, cari:pos},
- function(responseText){
- $("#listItem").html(responseText);
- },
- "html"
- );
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement