Forum Academy Marketplace Showcase Pricing Features

Plugin Development, Structuring the code

I’m trying to learn how to create plugins and am not a coder but could use some help figuring a few things out.

I have some jQuery

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("p").click(function(){
    $(this).hide();
  });
});
</script>
</head>
<body>

<h2><p>If you click on me, I will disappear.</P></h2>
<p>Click me away!</p>
<p>Click me too!</p>

<style>
h2 {
  color: blue;
  text-align: center;
}
</style>

</body>
</html>

In the Elements tab of the plugin editor where the element code goes it says I’ll need to define 2 functions for the element itself “initialize” and “update” and a function for each action.

With the above code how would I (type or) do this for the initialize and update function sections in the bubble plugins editor (in the elements tab).

Appreciate anyone kind enough to help, it would be extremely helpful as I begin learning tall of this :slight_smile: