You must Sign In to post a response.
  • Category: JQuery

    How to show orderedlist in alert message

    var BillingTitle=$('#Title').val();
    var BillingFirstName=$('#FirstName').val();
    var BillingLastName=$('#LastName').val();
    var BillingAddress1=$('#Address1').val();
    var BillingAddress2=$('#Address2').val();
    var BillingCity=$('#City').val();
    var BillingCounty=$('#County').val();
    var BillingCountry=$('#Country').val();
    var BillingPostcode=$('#Postcode').val();
    var BillingAddressTag=$('#AddressTag').val();

    alertmsg="Please fill \n ";

    if (BillingTitle==null || BillingTitle.trim()=="") {
    alertmsg+="<li>Title\r\n</li>";
    }
    if (BillingFirstName==null || BillingFirstName.trim()=="") {
    alertmsg+="<li>FirstName\r\n</li>";
    }
    if (BillingLastName==null || BillingLastName.trim()=="") {
    alertmsg+="<li>LastName\r\n></li>";
    }
    if (BillingAddress1==null || BillingAddress1.trim()=="") {
    alertmsg+="<p>Address1\r\n</p>";
    }
    if (BillingCity==null || BillingCity.trim()=="") {
    alertmsg+="<li>City\r\n</li>";
    }
    if (BillingCounty==null || BillingCounty.trim()=="") {
    alertmsg+="<li>County\r\n</li>";
    }
    if (BillingCountry==null || BillingCountry.trim()=="") {
    alertmsg+="<li>Country\r\n</li>";
    }
    if (BillingPostcode==null || BillingPostcode.trim()=="") {
    alertmsg+="<li>Postcode\r\n</li>";
    }
    if (BillingAddressTag==null || BillingAddressTag.trim()=="") {
    alertmsg+="<li>AddressTag\r\n</li>";
    }




    if (alertmsg!="Please fill ") {
    //jAlert(alertmsg, 'Ethnic Warehouse');
    //alert(alertmsg);

    //$('#divCustomError').html("<br/><center><p class=\"error-message custom-error\" style=\"width: auto;\">" + alertmsg + "</center></p>").slideDown(2000)
    $('#divCustomError').html("<br/><center><p class=\"error-message-din custom-error-din\" style=\"width: auto;\">" + alertmsg + "</center></p>").slideDown(2000)
    //$('#divCustomError').html("<br/><center><p class=\"error-message\">" + alertmsg + "</center></p>").slideDown(2000)
    return false;
    }
  • #761871
    Hi
    try this code


    var BillingTitle=$('#Title').val();
    var BillingFirstName=$('#FirstName').val();

    $('#divCustomError').html("<br/><center><p class=\"error-message-din custom-error-din\" style=\"width: auto;\">" + alert(BillTitle + BillingFirstName) + "</center></p>").slideDown(2000)


    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


  • Sign In to post your comments