The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Message Owner

    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Message Owner Empty Message Owner

    Post by TamDonCo October 11th 2016, 1:05 am

    Code:
        $('.postprofile dt').each(function(){

            var str = $(this).closest('.post').text() ;
            console.log(str);

        });

    how do we get the message owner or message nick of each message ?

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Message Owner Empty Re: Message Owner

    Post by SLGray October 11th 2016, 1:32 am

    What does the code do?



    Message Owner Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Message Owner Empty Re: Message Owner

    Post by TamDonCo October 11th 2016, 1:47 am

    SLGray wrote:What does the code do?

    line 3 get message content including everything but I only want a message nick .. there 's some syntax can do it but I forget ..
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Message Owner Empty Re: Message Owner

    Post by TamDonCo October 11th 2016, 2:01 am

    I found it .. please delte this topic

    Thank You
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Message Owner Empty Re: Message Owner

    Post by SLGray October 11th 2016, 3:21 am

    Locked as Requested



    Message Owner Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is September 23rd 2024, 6:32 am