FT3 Posted February 15, 2012 Report Share Posted February 15, 2012 Sveiki , vajadziga palidziba :) es lietoju šo jquery replace kodu , bet ir viena problema kods aizvieto tikai vienu [test] ka lai panakt lai viņš aizvietotu visus [test] kuri atrodas majalapa ?! $('#ipbwrapper').html($('#ipbwrapper').html().replace('[test]','<span class="att">test</span> ')); Iepriekš paldies, un sorry par garumzimem ;D Quote Link to comment Share on other sites More sharing options...
0 rATRIJS Posted February 15, 2012 Report Share Posted February 15, 2012 $('#ipbwrapper').html($('#ipbwrapper').html().replace(/\[test\]/g,'<span class="att">test</span> ')); Quote Link to comment Share on other sites More sharing options...
0 FT3 Posted February 15, 2012 Author Report Share Posted February 15, 2012 rATRIJS + tev Quote Link to comment Share on other sites More sharing options...
Question
FT3
Sveiki , vajadziga palidziba :)
es lietoju šo jquery replace kodu , bet ir viena problema kods aizvieto tikai vienu [test]
ka lai panakt lai viņš aizvietotu visus [test] kuri atrodas majalapa ?!
Iepriekš paldies, un sorry par garumzimem ;D
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.