Skip to content

varunsridharan/jquery-inputtoarray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery-inputtoarray

Usage

<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>

Screenshot


Sponsored By

DigitalOcean

About

No description or website provided.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published