<script src="http://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="intputtoarray.js"></script>
<script>
$(document).ready(function () {
console.log($('input#ToArray').inputToArray({key:'name',value:true})); // Return as array
console.log($('input#ToArray').inputArrayKey('name')); // returns base array key
})
</script>
<div class="form">
<input type="text" id="ToArray" name="groups[level1][level2][level3]" value="This is the value"/>>
</div>
-
-
Notifications
You must be signed in to change notification settings - Fork 0
varunsridharan/jquery-inputtoarray
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Code of conduct
Security policy
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published