JavaScript ရှိ ဖောင်အချက်ပေးခြင်းများ

ဖောင်တစ်ခုသည် အချက်ပေးခြင်းတစ်ခုကို နှိပ်ခြင်းဖြင့် ပေးပို့သည်ကို သင်သိပြီးဖြစ်သည်။ သို့သော်၊ ဤနေရာတွင် အသေးစိတ်အချက်များရှိပါသည်။ အချက်ပေးခြင်းတွင် <type ဂုဏ်သတ္တိရှိရပြီး ၎င်း၏တန်ဖိုးသည် <submit ဖြစ်ရပါမည်

public/form.html<form>
  <input name="test1">
  <input name="test2">
  <input type="submit">
</form>

<button tag သည်လည်း <type ဂုဏ်သတ္တိ <submit တန်ဖိုးဖြင့် ဖောင်ကိုပေးပို့ပါမည်

public/form.html<form>
  <input name="test1">
  <input name="test2">
  <button type="submit">btn</button>
</form>

မည်သည့် input တွင်မဆို အာရုံစိုက်ပြီး <Enter ကိုနှိပ်လျှင်လည်း ဖောင်ပေးပို့ပါမည်။

<type ဂုဏ်သတ္တိ <button တန်ဖိုးရှိသော အချက်ပေးခြင်းကို စာမျက်နှာ၏အစိတ်အပိုင်းတစ်ခုအဖြစ် အသုံးပြုပြီး ဖောင်ကိုမပေးပို့ပါ

public/form.html<form>
  <input name="test1">
  <input name="test2">
  <input type="button">
</form>

<button tag သည်လည်း အလားတူအလုပ်လုပ်ပါမည်

public/form.html<form>
  <input name="test1">
  <input name="test2">
  <button>btn</button>
</form>

<type ဂုဏ်သတ္တိ <reset တန်ဖိုးရှိသော အချက်ပေးခြင်းသည် ဖြည့်စွက်ထားသောဖောင်ကို ရှင်းလင်းပေးပါမည်

public/form.html<form>
  <input name="test1">
  <input name="test2">
  <input type="reset">
  <input type="submit">
</form>
Задание 1

အောက်ပါကုဒ်ကို အချက်ပေးခြင်းသည် ဆာဗာသို့ ဖောင်ပေးပို့နိုင်ရန် ပြင်ဆင်ပါ

html<form>
  <input name="name">
  <input name="surn">
  <button>send</button>
</form>