This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Osobaji21736
hallo all i tried to run this code but is not working
{% for col in explode(',',record.color) %} html Tags with {{col}} {% endfor %}
the error : Unknown "explode" function.
but this function exist in Laravel and poor PHP
Note I am new here
Last updated
Osobaji21736
$(function() {
var str = "{{record.color}}" ;
var res = str.split(",");
res.forEach(function(entry) {
.......
........
.......
}); });
I use jQuery to solve my problem but this not right way
$(function() {
var str = "{{record.color}}" ;
var res = str.split(",");
res.forEach(function(entry) {
.......
........
.......
}); });
Last updated
1-2 of 2