You need to sign in to do that
Don't have an account?
Bhargav Surapaneni
Javacript document.id alert function not working
Hi
I had a code where I need to compare mobile number & display that alert and highlight the specific row. here is my code
if(existingMobileSet.has(Number(mobileNumber)) == true){
document.getElementById(mobNumber).style.borderColor = "red";
document.getElementById(mobNumber).focus();
document.getElementById(mobNumber).select();
alert('Member already added to this Activity');}
Alert was displaying properly but even after clicking ok there is no response still popup is not going. Please help me how to resolve this.
Thanks in Advance
I had a code where I need to compare mobile number & display that alert and highlight the specific row. here is my code
if(existingMobileSet.has(Number(mobileNumber)) == true){
document.getElementById(mobNumber).style.borderColor = "red";
document.getElementById(mobNumber).focus();
document.getElementById(mobNumber).select();
alert('Member already added to this Activity');}
Alert was displaying properly but even after clicking ok there is no response still popup is not going. Please help me how to resolve this.
Thanks in Advance
You must provide id in quotes in document.getElementById. .For example,
document.getElementById('mobNumber').style.borderColor = "red";
Thanks