Add jQuery and jQuery UI to the Fiddle. Learn to use jsFiddle. There is documentation. Read it.
You asked about making a plugin. Before you make a plugin, you first need to get your code to work!
When you make a Fiddle, remove parts that don't demonstrate the problem. You have nonsense code trying to post to a non-existent parent.
If English is not your first language, use your own. We can use translation tools. It is hard to understand what you are asking.