🔒 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
  • 298
    Views
  • 5
    Participants
Last reply from:
PHC_Jayvee

Trending Topics

Online now

Members online
723
Guests online
4,950
Total visitors
5,673

Forum statistics

Threads
2,354,713
Posts
29,384,753
Members
1,079,569
Latest member
dukeinst11
Back
Top