Jump to content
nmoa

Aceder a div em ficheiro externo

Recommended Posts

nmoa

boas malta

tenho aqui uma dúvida

tenho uma div que esta a ler conteúdo vindo por LOAD em jquery

$("#plano").load(urls+"/cnt/plano.php?cl="+clubes, function (){ $("#plano").show(); });

so que não consigo aceder por jquery aos inputs dentro desse load

ou seja

por jquery tenho:

 

$( 'input:radio' ) . change( function (e) { var $this = $( this ); 
var $id = $this . attr( 'name' ); 

switch ( $id ) {

case "plano": 
$( '#plano li' ) . removeClass( 'w3-yellow' ); 
$( '#plano li' ) . addClass( 'w3-light-grey' ); 
$this . closest( '#plano li' ) . removeClass( 'w3-light-grey' ); 
$this . closest( '#plano li' ) . addClass( 'w3-yellow' ); 
break;

mas não esta a conseguir ler o input:radio que esta no ficheiro externo em cima mencionado....

como se pode fazer isso?

obrigado

Edited by nmoa

Share this post


Link to post
Share on other sites

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.   Restore formatting

  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.


×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.