Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > เพิ่มข้อมความหลัง Check BOx ทำยังไงต้องการให้ผู้ใช้คนที่ 1เปลี่ยนเป็นต้องการให้ผู้ใช้คนที่ 2 ด้วยครับ



 

เพิ่มข้อมความหลัง Check BOx ทำยังไงต้องการให้ผู้ใช้คนที่ 1เปลี่ยนเป็นต้องการให้ผู้ใช้คนที่ 2 ด้วยครับ

 



Topic : 124341



โพสกระทู้ ( 92 )
บทความ ( 0 )



สถานะออฟไลน์




dddd
59
Code (PHP)
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<script type="jame/js" src="jquery3.0.1.js"></script>

<script language="javascript">
	function CreateNewRow()
	{
		var intLine = parseInt(document.frmMain.hdnMaxLine.value);
		intLine++;
			
		var theTable = document.all.tbExp
		var newRow = theTable.insertRow(theTable.rows.length)
		newRow.id = newRow.uniqueID
		
		var item1 = 1
		var newCell
		
		//*** Column 1 ***//
		newCell = newRow.insertCell(0)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column1_"+intLine+"\" VALUE=\"\">"

		//*** Column 2 ***//
		newCell = newRow.insertCell(1)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column2_"+intLine+"\" VALUE=\"\">"		
		
		//*** Column 3 ***//
		newCell = newRow.insertCell(2)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column3_"+intLine+"\" VALUE=\"\">"				
		
		//*** Column 4 ***//
		newCell = newRow.insertCell(3)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column4_"+intLine+"\" VALUE=\"\">"		
		
		//*** Column 5 ***//
		newCell = newRow.insertCell(4)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column5_"+intLine+"\" VALUE=\"\">"			
		
		document.frmMain.hdnMaxLine.value = intLine;
	}
	
	function RemoveRow()
	{
		intLine = parseInt(document.frmMain.hdnMaxLine.value);
		if(parseInt(intLine) > 0)
		{
				theTable = (document.all) ? document.all.tbExp : 
				document.getElementById("tbExp")
				theTableBody = theTable.tBodies[0];
				theTableBody.deleteRow(intLine);
				intLine--;
				document.frmMain.hdnMaxLine.value = intLine;
		}	
	}	
</script>
<body>
<form name="frmMain" method="post">
ผู้ใช้คนที่1
  <table width="445" border="1" id="tbExp">
    <tr>

  </tr>
</table>
<input type="hidden" name="hdnMaxLine" value="0">
<input name="btnAdd" type="button" id="btnAdd" value="+" onClick="CreateNewRow();">
<input name="btnDel" type="button" id="btnDel" value="-" onClick="RemoveRow();">
<label for="checkbox"></label>
</form>
</body>
</html>


เพิ่มข้อมความหลัง Check BOx ทำยังไงต้องการให้ผู้ใช้คนที่ 1เปลี่ยนเป็นต้องการให้ผู้ใช้คนที่ 2 ด้วยครับ



Tag : PHP, JavaScript









ประวัติการแก้ไข
2016-08-24 07:29:45
2016-08-24 09:12:41
Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2016-08-23 11:38:33 By : fzjameza View : 695 Reply : 7
 

 

No. 1



โพสกระทู้ ( 92 )
บทความ ( 0 )



สถานะออฟไลน์


พี่วินช่วยหน่อยครับบบบบ






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-08-24 07:30:09 By : fzjameza
 


 

No. 2



โพสกระทู้ ( 1,095 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


อยากรู้มั้ย ทำไมไม่มีคนตอบ

อ่านกี่รอบๆ ก็ไม่เข้าใจ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-08-24 09:01:59 By : คนมีเสน่ห์
 

 

No. 3



โพสกระทู้ ( 92 )
บทความ ( 0 )



สถานะออฟไลน์


59

แบบนี้พอเข้าใจไหมครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-08-24 09:13:07 By : fzjameza
 


 

No. 4

Guest


<input type="checkbox" name="test" value='test'>xxx <---xxx คือข้อความที่ต้องการ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-08-24 13:18:00 By : -..-
 


 

No. 5



โพสกระทู้ ( 92 )
บทความ ( 0 )



สถานะออฟไลน์


ตอบความคิดเห็นที่ : 4 เขียนโดย : -..- เมื่อวันที่ 2016-08-24 13:18:00
รายละเอียดของการตอบ ::
ลองแล้วไม่ขึ้นครับบบ

รบกวนผู้รู้ตอบที่ครับ

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-08-25 08:48:15 By : fzjameza
 


 

No. 6



โพสกระทู้ ( 5,146 )
บทความ ( 26 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์


Code (PHP)
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<script type="jame/js" src="jquery3.0.1.js"></script>

<script language="javascript">
	function CreateNewRow()
	{
		var intLine = parseInt(document.frmMain.hdnMaxLine.value);
		intLine++;
			
		var theTable = document.all.tbExp
		var newRow = theTable.insertRow(theTable.rows.length)
		newRow.id = newRow.uniqueID
		
		var item1 = 1
		var newCell
		
		//*** Column 1 ***//
		newCell = newRow.insertCell(0)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column1_"+intLine+"\" VALUE=\"\">ต้มยำ"

		//*** Column 2 ***//
		newCell = newRow.insertCell(1)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column2_"+intLine+"\" VALUE=\"\">สเต็ก"		
		
		//*** Column 3 ***//
		newCell = newRow.insertCell(2)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column3_"+intLine+"\" VALUE=\"\"> เนื้อย่าง"				
		
		//*** Column 4 ***//
		newCell = newRow.insertCell(3)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column4_"+intLine+"\" VALUE=\"\">ปิ้งปลาดุก"		
		
		//*** Column 5 ***//
		newCell = newRow.insertCell(4)
		newCell.id = newCell.uniqueID
		newCell.setAttribute("className", "css-name");
		newCell.innerHTML = "<INPUT TYPE=\"checkbox\" SIZE=\"5\" NAME=\"Column5_"+intLine+"\" VALUE=\"\">ปลาแดกบอง"			
		
		document.frmMain.hdnMaxLine.value = intLine;
	}
	
	function RemoveRow()
	{
		intLine = parseInt(document.frmMain.hdnMaxLine.value);
		if(parseInt(intLine) > 0)
		{
				theTable = (document.all) ? document.all.tbExp : 
				document.getElementById("tbExp")
				theTableBody = theTable.tBodies[0];
				theTableBody.deleteRow(intLine);
				intLine--;
				document.frmMain.hdnMaxLine.value = intLine;
		}	
	}	
</script>
<body>
<form name="frmMain" method="post">
ผู้ใช้คนที่1
  <table width="445" border="1" id="tbExp">
    <tr>

  </tr>
</table>
<input type="hidden" name="hdnMaxLine" value="0">
<input name="btnAdd" type="button" id="btnAdd" value="+" onClick="CreateNewRow();">
<input name="btnDel" type="button" id="btnDel" value="-" onClick="RemoveRow();">
<label for="checkbox"></label>
</form>
</body>
</html>




ใส่ไปด้านหลังแบบนี้ครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-08-25 10:09:12 By : deawx
 


 

No. 7



โพสกระทู้ ( 92 )
บทความ ( 0 )



สถานะออฟไลน์


ตอบความคิดเห็นที่ : 6 เขียนโดย : deawx เมื่อวันที่ 2016-08-25 10:09:12
รายละเอียดของการตอบ ::
ได้แล้วครับ ขอบคุณมากครับ
ถ้าต้องการ กดแล้วเพิ่ม อีก 1 ตารางได้ไหมครับ แล้วเปลี่ยน จากผู้ใช้คนที่1 เป็นคนที่ 2 ให้เลย โดยไม่ต้องมานั้งแก้เอง อะครับ
พอจะเข้าใจไหมครับ

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-08-25 12:06:27 By : fzjameza
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : เพิ่มข้อมความหลัง Check BOx ทำยังไงต้องการให้ผู้ใช้คนที่ 1เปลี่ยนเป็นต้องการให้ผู้ใช้คนที่ 2 ด้วยครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 03
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่