anonīms Posted May 16, 2011 Report Share Posted May 16, 2011 <form id="profile_form_profile"> <div> <fieldset></fieldset> <div class="last"></div> <fieldset></fieldset> <div class="last"></div> <fieldset></fieldset> <div class="last"></div> </div> </form> $("#profile_form_profile .last_div").after('yo') $("#profile_form_profile div .last_div").after('yo') $(".last_div").after('yo') kādēļ nekas netiek atrasts? konsole neko neizmet. Skaitot ar length izmet 0 elementus. Kur problēma? Quote Link to comment Share on other sites More sharing options...
0 indoom Posted May 16, 2011 Report Share Posted May 16, 2011 neredzu piemērā klasi .last_div varbūt domāji div.last ? Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted May 16, 2011 Author Report Share Posted May 16, 2011 kļūda piemērā, atvainojos. Quote Link to comment Share on other sites More sharing options...
0 rATRIJS Posted May 16, 2011 Report Share Posted May 16, 2011 Kaa tad galu galaa izskataas tas kods bez kljuudas? + tu savu JS kodu palaid kad DOM ir gatavs? Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted May 16, 2011 Author Report Share Posted May 16, 2011 <form id="profile_form_profile"> <div> <fieldset></fieldset> <div class="last_div"></div> <fieldset></fieldset> <div class="last_div"></div> <fieldset></fieldset> <div class="last_div"></div> </div> </form> šādi ar izskatās. liekot after() pēc katra div atrod viņu, bet ejot tiešāk gan vairs nē. mēģināju gan pirms, gan pēc rATRIJS, nelīdz. Quote Link to comment Share on other sites More sharing options...
0 indoom Posted May 16, 2011 Report Share Posted May 16, 2011 Nezinu, kas domāts ar mēģināšanu gan pirms, gan pēc, bet pamēģini ielikt savu kodu šajā kodā iekšā $(function(){ ... }); tur kur daudzpunktes Un paskaidro, ko nozīmē "ejot tiešāk"? Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted May 16, 2011 Author Report Share Posted May 16, 2011 indoom, paldies nevajag :) mans kods ir izraukts no konteksta un tik zaļš ar neesmu :D tiešāk? $("#profile_form_profile").after('yo') atrod$("#profile_form_profile div").after('yo') atrod $("#profile_form_profile .last_div").after('yo') neatrod $("#profile_form_profile fieldset").after('yo') atrod Quote Link to comment Share on other sites More sharing options...
0 indoom Posted May 17, 2011 Report Share Posted May 17, 2011 Tad tev jārāda viss kods ar kontekstu. Pašlaik tajā html gabalā viss tiek atrasts. Ar zīlēšanu te neviens nenodarbojas. Quote Link to comment Share on other sites More sharing options...
Question
anonīms
kādēļ nekas netiek atrasts? konsole neko neizmet. Skaitot ar length izmet 0 elementus. Kur problēma?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.