var str = $(".bx_catalog_item_container").find($(".bx_catalog_item_title")).children("a").each(function(ind, elem){ var el = $(elem).text(); var indexStr = el.indexOf(":"); var changeStr = el.substring(0,indexStr); }); |
var str = $(".bx_catalog_item_container").find($(".bx_catalog_item_title")).children("a").each(function(ind, elem){ var el = $(elem).text(); var indexStr = el.indexOf(":"); var changeStr = el.substring(0,indexStr); }); Source: https://ru.stackoverflow.com/questions/583522/
All Articles
$(elem).addClass("myClass");and canfind(".bx_catalog_item_title")? - Igorel.get(0).classList.add()- Darth