Categories
How to remove text?
Help to remove text in div after comma. Example:
<div id="div_test">Слово , после удалено все в див </div>
Answer the question
In order to leave comments, you need to log in
codepen.io/anon/pen/LpxWor
$("selector").each(function(){ currentText = $(this).text(); $(this).text(currentText.split(",")[0]); });
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question