freelance, web developer, web designer, hosting, domain name
<html> <head> <javascript> fucntion replace(id){ var button=document.getElementById(id); var oldValue=button.value; var newValue; if(oldValue=='เพิ่ม'){ newValue='แก้ไข'; button.value=newValue; }else{ newValue='เพิ่ม'; button.value=newValue; } } </javascirpt> </head> <body> <input type="button" id="button1" value="เพิ่ม" onclick="replace(this.id)"> </body> </html>
ไม่ได้ครับ ทำมาเกือบเดือนแล้วจะส่งอีกไม่กี่วันี้แล้วอะครับ
<html>
<head>
<javascript>
fucntion replace(id){
var button=document.getElementById(id);
var oldValue=button.value;
var newValue;
if(oldValue=='เพิ่ม'){
newValue='แก้ไข';
button.value=newValue;
}else{
newValue='เพิ่ม';
button.value=newValue;
}
}
</javascirpt>
</head>
<body>
<input type="button" id="button1" value="เพิ่ม" onclick="replace(this.id)">
</body>
</html>
ส่วนการส่งค่าไปให้ iframe นั้นอาจจะเพิ่มฟังก์ชั่น send ส่งไปก็ได้
หรือถ้าอยู่ในส่วนของฟอร์มก็เพิ่ม target="id ของ iframe" ก็ได้
ไม่ได้ครับ ทำมาเกือบเดือนแล้วจะส่งอีกไม่กี่วันี้แล้วอะครับ