Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 07, 2013 01:34 AM by fredd_and
Member
44 Points
46 Posts
Dec 25, 2012 10:22 AM|LINK
i append some value from other div, and it works,
but after 3 times append target div become empty and can not append new value from other div,
here Script code i try
$(".menu").click(function (e) { e.preventDefault(); var x = $(this).attr('rel'); $('.showgallery').empty(); $('#' +x).contents().appendTo('.showgallery').end().fadeIn(fast); });
please advice or correct my code for better result
can not find in google yet why after 3 times click, target div ('.showgallery') receive no value.
thank you
172 Points
32 Posts
Dec 26, 2012 05:42 AM|LINK
hey can you put full code..if possbile...n explain how you adding div
All-Star
43715 Points
4304 Posts
Microsoft
Dec 28, 2012 06:06 AM|LINK
Hi,
I can't reproduce your scenario on my side without more code. I suggest you debug with chrome debugger.
Any more question, please feel free to reply.
30184 Points
4906 Posts
Dec 31, 2012 03:29 AM|LINK
Debug your code properly. May be you are removing the content in some conditions.
Jan 07, 2013 01:34 AM|LINK
i try with debugger mozila , crome and IE, but not one can run as i expect, so i change the code here :
$(".menu").click(function (e) { e.preventDefault(); var x = $(this).attr('rel'); $('.showgallery').empty(); // $('#' +x).contents().appendTo('.showgallery').end().fadeIn(fast); $('#' +x).clone(true,true).contents().appendTo('.showgallery').end().fadeIn(fast); });
and this behavior i want..
thank you, it solve now
fredd_and
Member
44 Points
46 Posts
div append to other div
Dec 25, 2012 10:22 AM|LINK
i append some value from other div, and it works,
but after 3 times append target div become empty and can not append new value from other div,
here Script code i try
$(".menu").click(function (e) { e.preventDefault(); var x = $(this).attr('rel'); $('.showgallery').empty(); $('#' +x).contents().appendTo('.showgallery').end().fadeIn(fast); });please advice or correct my code for better result
can not find in google yet why after 3 times click, target div ('.showgallery') receive no value.
thank you
pratikkapadi...
Member
172 Points
32 Posts
Re: div append to other div
Dec 26, 2012 05:42 AM|LINK
hey can you put full code..if possbile...n explain how you adding div
Song-Tian - ...
All-Star
43715 Points
4304 Posts
Microsoft
Re: div append to other div
Dec 28, 2012 06:06 AM|LINK
Hi,
I can't reproduce your scenario on my side without more code. I suggest you debug with chrome debugger.
Any more question, please feel free to reply.
Feedback to us
Develop and promote your apps in Windows Store
asteranup
All-Star
30184 Points
4906 Posts
Re: div append to other div
Dec 31, 2012 03:29 AM|LINK
Hi,
Debug your code properly. May be you are removing the content in some conditions.
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog
fredd_and
Member
44 Points
46 Posts
Re: div append to other div
Jan 07, 2013 01:34 AM|LINK
i try with debugger mozila , crome and IE, but not one can run as i expect, so i change the code here :
$(".menu").click(function (e) { e.preventDefault(); var x = $(this).attr('rel'); $('.showgallery').empty(); // $('#' +x).contents().appendTo('.showgallery').end().fadeIn(fast); $('#' +x).clone(true,true).contents().appendTo('.showgallery').end().fadeIn(fast); });and this behavior i want..
thank you, it solve now