PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
 | Want free Kindle ebooks?
Sign up to receive the best freebie Kindle ebook deals in your email every day.  | From our sponsors | | |
Kk2 master mw tnya knpa jquery event nya gk berfun... Oct 11th 2013, 08:19, by Rahmad Santosa | Kk2 master mw tnya knpa jquery event nya gk berfungsi setelah pake .html(response) .
<body> <h2></h2> <button>generate new element</button>
$("button").click(function() { $("h2").html("<p class='test'>click me</p>") });
$(".test").click(function(){ alert(); });
</body> |
| | Coba ubah class='test' Dengan class=test |
| | Tambahin attr tag p dg onclick='klikSaya()'
Kemudian buat function klikSaya(){ Alert('test') } |
| | coba dibaca referensi disini http://api.jquery.com/on/ , element yang dibuat ketika halaman sudah ready bisa dikasih fungsi dengan metode .on |
| | [oot] ane masih nubi.. mo nanya .. itu pake <script></script> ndak ya? |
| | y jelas pakai juga <script></script> |
| | kk Tunggul Aji msih belum bisa juga saya tambahin .on('click',function(){}); |
| | kk Kist Tanto berhasil sih makasih , tpi klw pengen gk pakai function gmana kk ? | | |
|
Tidak ada komentar:
Posting Komentar