🔒 Closed Javascript alert

Status
Not open for further replies.

anthrax3000

Eternal Poster
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
  • 297
    Views
  • 5
    Participants
Last reply from:
PHC_Jayvee

Trending Topics

Online now

Members online
1,242
Guests online
5,279
Total visitors
6,521

Forum statistics

Threads
2,354,563
Posts
29,384,159
Members
1,079,498
Latest member
xch4n
Back
Top