Hi guys i need your help, i’m unable to target the quotes to display on my post tweet page, is there something i’m getting wrong? thanks
In line 23 of your JS, you set var tweet = quotesDisplay, but quotesDisplay is an id in your HTML, not a defined JS variable.
Oh wow thanks I see, how do I go about correcting it? Thanks
And also when I try any of the JS variables I get undefined error… Glad for any help
So, you are going to want to use document.getElementByI(“id you want the value of”) link instead of calling the function newVersetext.
Sorry I’m not more helpful. Having a sick day and I’m a bit sluggish
Thanks i can see the addition but still opening blank page, trying to crack my head around getting the data in vain. Sorry about your illness though you’ll be well.
tweet = document.getElementById(‘quotesDisplay’).innerText;
^^^ then you can simply append the 'tweet ’ variable to this when you send the information to Twitter
I have a forked working copy saved on my Codepen, but hopefully the above is enough to puzzle through it. Cheers!
Hey Tyler, this is great, its working now, only that its opening two windows. Any idea how to fix that?
I went to your Codepen and tried it and only opened one window. Did you get it figured out?
Yes this is now sorted, i’m actually working on the Facebook one also Thank you so much man.