Thursday 26 September 2019

javascript - Turn a form into an associative array in Jquery

I have the following form:










How do I turn that into an associative array that can be accessed like the following?




formArray['name'], formArray['sku'], etc.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...