L
L
LebedevStr2018-03-03 12:34:13
JavaScript
LebedevStr, 2018-03-03 12:34:13

How to do regular expression replacement with jQuery?

Hello.
There is a markup How to turn it into a regular? In my case, it doesn't quite work. Thank you.
<b id="idname">some_content</b>

<b id="idname">some_content2</b>


$("#elementID").html("another string");

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
po5epT, 2018-03-03
@po5epT

Get the content from the first element, connect to the desired content, and paste it into the second element.
Why is this regular?

W
wizion94, 2018-03-03
@wizion94

https://jsfiddle.net/hxhj7h86/2/
Regular is definitely not needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question