I am unable to append values into the _summary
class or any other. I believe its a really simple syntax error I am making. I have been trying different syntax's for the past day, with no luck.
I am using this widget.
Please help.
jQuery
$("._summary").append("hello world");
HTML
<a href="http://example.com/link-to-your-event" title="Add to Calendar" class="addthisevent" id="addthisevent">
Add to Calendar
<span class="_start">10-05-2014 11:38:46</span>
<span class="_end">11-05-2014 11:38:46</span>
<span class="_zonecode">1</span>
<span class="_summary">Summary of the event</span>
<span class="_description">Description of the event</span>
<span class="_location">Location of the event</span>
<span class="_organizer">Organizer</span>
<span class="_organizer_email">Organizer e-mail</span>
<span class="_all_day_event">false</span>
<span class="_date_format">DD/MM/YYYY</span>
</a>
After that calendar widget code does it's magic, all those internal
<span>
elements are set todisplay: none
. The code is probably working, as you could verify with your browser developer tools (inspect the DOM).After your code that modifies the text, add this:
It's there in the FAQ. Here is a fork of VisioN's fiddle.