Can you please take a look at this demo and let me know why I am not able to pass two different options into my plugin?
$.fn.contact = function() { opt1: function() { this.append('<a >Hi</a>'); this.css("color", "red"); return this; }, opt1: function() { this.append('<a >Bye</a>'); this.css("color", "red"); return this; } }; $(".plug-txt").contact({ opt1 });
<div class="container"> <div class="plug-txt"> </div> </div>