90
rated 0 times
[
96]
[
6]
/ answers: 1 / hits: 94663
/ 12 Years ago, sat, april 21, 2012, 12:00:00
i have some value stored in array and i wana split them and wana know length of its contains value but when i am running function it is not working
<head>
<script type=text/javascript src=jquery.js></script>
<script type=text/javascript>
$(function(){
var valData= ['songs','video','movie','games','other'];
var valNew=valData.split(',');
for(i=0;i<valNew.length;i++);
alert(valNew.length)
})
</script>
</head>
<body>
<select id=me></select>
</body>
More From » jquery