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

Trending Topics

Online now

Members online
1,193
Guests online
1,790
Total visitors
2,983

Forum statistics

Threads
2,294,664
Posts
29,092,532
Members
1,207,439
Latest member
TawAs
Back
Top