What's new

Help Javascript alert

anthrax3000

Eternal Poster
Established
Joined
Jan 28, 2017
Posts
1,193
Reaction
168
Points
403
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.
 

Similar threads

Back
Top