Jump to content
php.lv forumi

Recommended Posts

Posted (edited)

Sveiki!

$(document).ready(function(){
$(".object").click(function(e){
//daru darbību.
});
});

Lieta tāda, ka ielādējot lapu varu kustināt jebkuru nepieciešamo objektu. Taču, ja pievienoju jaunu objektu ar (append) tad šī jQuery funkcija uz jauno objektu nereaģē, kamēr nav pārlādēta lapa. Kā panākt, lai pievienojot objektu uzreiz varētu ar to rīkoties, bez lapas pārlādes.

Ceru, ka paskaidroju saprotami.

Paldies!

Atvainojos, iepriekšējā topikā bija tas, kas vajadzīgs. Lieta atrisināta.

Edited by Artenis

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...