ดึงข้อความจาก htmt ใช้ อะไร ง่ายสุดครับ

เริ่มโดย untilate, 06 กรกฎาคม 2009, 14:48:08

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

untilate

ผมใช้ preg_match_all อยู่ รู้สึกมั่วจังครับ

ใครรู้แบบอื่นช่วยบอกหน่อยครับ

gigkokman

ผมใช้วิธีดูแท็กไอดีหรือว่า pattern ครับ
แล้วก็ substr อาจจะบ้าน ๆ ไปนิดแต่ก็ใช้ได้ครับ  :-[
ลิขิตฟ้าหรือจะสู้มานะคน

Ton~

Rapid Solution
Web Developer and Programmer Service

animaturk

ใช้เจคิวรี่หรอครับ ดึงยังไงอ่าครับ ยังงง

Kobsoft


amdxp

ในการ ดีง ข้อมูลจาก jquery
ข้อข้อมูลจาก tag table
<table>
<tr>
<td id="col1">adfdfdsaf</td>
</tr>
</table>
คลิกตรง td
$('#col1').click(function(){
var txt=$(this).text();
alert(txt);
// ค่าที่ได้ก้อจะเป็น "adfdfdsaf"
});
// ถ้าต้องการเปลี่ยนค่าใน td จาก adfdfdsaf เป็น sssss
$('#col1').html('sssss');


[direct=http://www.pasound.super-fee.com] ลำโพงล้อลาก ชุดประชุม  [/direct][direct=http://www.itsoundup.com]เครื่องเสียงกลางแจ้ง[/direct][direct=http://www.pascreen.super-fee.com]จอโปรเจคเตอร์[/direct]

zhitz

ทำบุญวันเกิด [direct=http://meritsbirthday.hotelsza.com/merits/]ทำบุญวันเกิด[/direct] เกิดอยากจะทำบุญ

vava

อ้างถึงจาก: Kobsoft ใน 08 กรกฎาคม 2009, 15:13:58
:-[ ผมใช้เพื่อนคับ
โปรแกรมนี้ผมใช้มานานแระครับ ดีจริงขอบอก  ::)
[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]

Sarbuy

อ้างถึงจาก: amdxp ใน 09 กรกฎาคม 2009, 14:03:53
ในการ ดีง ข้อมูลจาก jquery
ข้อข้อมูลจาก tag table
<table>
<tr>
<td id="col1">adfdfdsaf</td>
</tr>
</table>
คลิกตรง td
$('#col1').click(function(){
var txt=$(this).text();
alert(txt);
// ค่าที่ได้ก้อจะเป็น "adfdfdsaf"
});
// ถ้าต้องการเปลี่ยนค่าใน td จาก adfdfdsaf เป็น sssss
$('#col1').html('sssss');

ขอบคุณมากครับ เรียบง่ายแต่ได้ใจความ