thanks for the tip, Joe!
this is what i ended up doing:
$('.take li').click(function() {
var clip = $(this).text();
$('.place').append(clip);
On Jan 6, 3:18 pm, Joe Lillibridge <[email protected]> wrote:
> On 6/01/2011, at 1:15 PM, Daniel Donaldson wrote:
>
> > i've got a couple of lists, and what i'd like to happen is when the
> > user clicks an item on the first list, the text from the clicked item
> > is appended to the text of a list item in the second list.
>
> > i've tried:
>
> > $(".take li").click(function(){
> > $(this).text($(".place")).append();
> > });
>
> > but it's not working.
>
> > any ideas?
>
> > thanks for any help
>
> It would be something like:
>
> $(".take li").click(function() {
> $(".place").append($(this).text());
>
> });
>
> You want to pass the text to be appended to .append().
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]