I have a navigation bar in that navigation bar i have a tweet option in the end, So when some one clicks on that tweet a pop up model should open. I have tried with below code but its not working. Any one guide me where i am going wrong?
$(document).ready(() => {
$('#header #nav-menu-container ul').append('<li class="tweet"><a href="#tweetmodel">Tweets</a></li>').addClass('additionalnavtext');
$('.tweet').click(() => {
$('<div id="tweetmodel" class="modal"><p>Testing</p><a href="#" rel="modal:close">Close</a></div>').open();
});
});