How can I get the class name with contain 'map' in jquery?
<p>Does anyone how can I get the class name with contain word 'map' with jquery? I'm using the following code to get the class name with map (eg. class="mapTest"), but it not work if the class contain 2 name (e.g class="abctest map test"). Does anyone know how can I fix it?</p>

<pre><code>     $(":input[class^=map]").each(function(index, element) {
        map_array.push(this.className);
    });
</code></pre>
