Skip to content

Commit

Permalink
updated to 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
maurictg committed Jan 28, 2021
1 parent 067f9e8 commit 2a150ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,38 +444,38 @@ $('<h1>hey</h1').appendTo('#t2');
Append an element below the selected element. This function also supports HTML.
```html
<div id="parent">
<div id="first"></div>
<!-- second div should appear here -->
<div id="third"></div>
<p id="first"></p>
<!-- second p should appear here -->
<p id="third"></p>
</div>
<script>
$('#first').appendBelow('<div id="second"></div>');
$('#first').appendBelow('<p id="second"></p>');
</script>
```

### .appendAbove(_element_)
Append an element above the selected element. This function also supports HTML.
```html
<div id="parent">
<div id="first"></div>
<!-- secpnd div should appear here -->
<div id="third"></div>
<p id="first"></p>
<!-- secpnd p should appear here -->
<p id="third"></p>
</div>
<script>
$('#third').appendAbove('<div id="second"></div>');
$('#third').appendAbove('<p id="second"></p>');
</script>
```

### .appendAt(_index, element_)
Append an element at a selected index in the selected element's children. This function also supports HTML.
```html
<div id="parent">
<div id="first"></div> <!-- [0] => [0] -->
<!-- second div should appear here -->
<div id="third"></div> <!-- [1] => [2] -->
<p id="first"></p> <!-- [0] => [0] -->
<!-- second p should appear here -->
<p id="third"></p> <!-- [1] => [2] -->
</div>
<script>
$('#parent').appendAt(1, '<div id="second"></div>');
$('#parent').appendAt(1, '<p id="second"></p>');
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blocksharp/qquery",
"version": "1.0.4",
"version": "1.0.5",
"description": "QQuery is a small and lightweight JQuery alternative",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down

0 comments on commit 2a150ae

Please sign in to comment.