看板 Web_Design 關於我們 聯絡資訊
$('#extendcode2').find('span').filter(function() { return $(this).css('text-decoration').indexOf('line-through') >=0; }).text('') ※ 引述《bluehaerts (5858笨58)》之銘言: : 目前遇到一個問題, : 把textarea套用tinymce, : 可是目前遇到需要把textarea的值取出來當統計資料, : 可是 裡面會牽扯到有刪除線的字是屬於不需要存入DB的, : 當我把tinymce.remove 取到字串是下面顯示的, : 我有嘗試用JQUERY 把span帶有 text-decoration: line-through屬性的值刪掉, : 可是沒有成功, : $("#extendcode2").find("[style*='text-decoration: line-through;']").text(''); : 請問這樣要用什麼方法解決QQ : -------------------底下是HTML------------------------- : <div id="extendcode2" style="background-color: #FFFFFF;"> : <span style="text-decoration: line-through;">1111 : <span style="text-decoration: underline;">55</span> : </span> : 55 : <span style="text-decoration: line-through;">5556544</span> : 65 : <span style="text-decoration: line-through;">46777</span> : 7 : <span style="font-size: 24pt;">7777777</span> : 7 : <span style="text-decoration: line-through;">77</span> : </div> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.43.139.23 ※ 編輯: WaiTingKuo 來自: 114.43.139.23 (11/16 00:49)