Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

separatly fetch a strings with commas inn js

$(function(){
    var s = "jpeg, jpg, gif, png";
    var match = s.split(', ')
    console.log(match)
    for (var a in match)
    {
        var variable = match[a]
        console.log(variable)
    }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #separatly #fetch #strings #commas #inn #js
ADD COMMENT
Topic
Name
7+4 =