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 | | |
[Nanya] Met siang mastah2 php, ane mau tanya nich,... Oct 4th 2013, 08:28, by Dhie Cihuy | [Nanya] Met siang mastah2 php, ane mau tanya nich, gmn caranya utk change attribut link a href dari suatu div ID? ane udah nyoba spt contoh dibawah ini, tp knp g work y. Mohon dibantu :)
<html> <title>test page</title> <head>
<script type="text/javascript" language="javascript"> $(function() { $('#popuplink a:first').attr({href: "detik.com"}); }); </script> </head> <body>
<div id="popuplink"> <a href="kapanlagi.com" class="link">ini link coba</a> </div>
</body> </html> |
| | coba ganti jadi $(document).ready(function(){ $('#popuplink a:first').attr({href: "detik.com"}); }); | | |
|
Tidak ada komentar:
Posting Komentar