Jumat, 11 Oktober 2013

PHP Indonesia - Facebook: apa id dan class tidak dapat dijadikan jquery sele...

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/ 
How to Get into Medical School

A tested blueprint to approach the daunting admissions process with both confidence and success! Enroll in this online course for just $29.
From our sponsors
apa id dan class tidak dapat dijadikan jquery sele...
Oct 12th 2013, 05:00, by Imam

Imam 5:00am Oct 12
apa id dan class tidak dapat dijadikan jquery selector parent > child ya? kok nggak bisa jalan ini http://jsfiddle.net/wCbHD/ mohon bantuannya

Ahmad Zuhdi 5:03am Oct 12
coba pake
$("#status").find('.canvas').find('.width').val(tinggi);

cmiiw

Imam 5:07am Oct 12
sip, bekerja mas, tapi apakah ada selector parent > child yang lebih simple lagi mas?

Ahmad Zuhdi 5:10am Oct 12
kurang tau juga mas, soal nya saya selalu pake cara yang di atas :v

Gunawan Mujur Wibisono 5:11am Oct 12
var lebar=900;
var tinggi=400;

//jika langsung elemennya bisa
$("input.width").val(lebar);

//jika pakai parent tidak bisa
//$("#status > .canvas > .width").val(tinggi);
width=$(".height");
pos=$("#status").find(width);
pos.val(tinggi);

Imam 5:17am Oct 12
saya kepikiran jika tiap elemen saya beri id, apa tidak termasuk pemborosan id ya? tetapi menghemat script js, seperti $("#canvas_height") , jika dipertimbangkan lebih baik diambil mana soalnya untuk web application yng berjalan di js ?

Gunawan Mujur Wibisono 5:18am Oct 12
pake id yg sama berkali2 itu gk bagus

Imam 5:20am Oct 12
maksudnya dihtml apa di jsnya ?

Gunawan Mujur Wibisono 5:26am Oct 12
html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar