🔒 Closed Javascript alert

Status
Not open for further replies.

anthrax3000

Established
guys, pano kaya code if halimbawa yung isang cell ng table is empty, tas press "Submit" may magpapakitang alert na "Field is EMpty" pero pag may nakalagay sa cell ng table is proceed sya sa next webpage. so far yung nagawa ko lang is yung proceed lang sa next page, yung sa error pag empty cell table hndi ko po alam kung pano.

function check() {
var txt;
var r = confirm("Are you sure you want to proceed?");
if (r == true) {
window.location ="done.html";

}
}
 
d ko gets sir ung table, table po ba or input text? kng input text po may control po sa HTML 5 na "required" attribute. lagyan mo lng ng required attribute ung inputs na dapat may value.
 
Status
Not open for further replies.

About this Thread

  • 5
    Replies
  • 267
    Views
  • 5
    Participants
Last reply from:
PHC_Jayvee

Online now

Members online
409
Guests online
901
Total visitors
1,310

Forum statistics

Threads
2,275,080
Posts
28,960,512
Members
1,233,576
Latest member
palautogmongpinoy
Back
Top