You can see the example usage here
You can import the external script inside the <body>{here}</body>
tag.
<!-- imported script -->
<script src="https://unpkg.com/[email protected]/amira.min.js"></script>
NB: Remember to use the amira APIs below the imported script.
You can insert both value or text in single function.
$(".amira").insert("Hello World");
You can empty both value or text in single function.
$(".amira").empty();
You can set elements attribute by using setAttr
function.
$(".amira").setAttr("id", "11");
Also supports fluent design
$(".amira").setAttr("id", "11").setAttr("style", "color: red;");
You can remove elements attribute by using removeAttr
function.
$(".amira").removeAttr("id");
You can show elements by using show
function.
$(".amira").show();
You can hide elements by using hide
function.
$(".amira").hide();
You can create new pull requests here
This javascript library is published under MIT License