Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have this javascrip

JavaScript
if (searchResults.length == 0) {alert("Not Found!")}else{
var resultValue = JSON.stringify(searchResults);
alert(searchResults);


now instead of alert(searchResults); I want to display the value of searchresults in a customized popup windows. and not alert. I also want to format the way its displayed


I do not know how to implement this.

this is the button which does calls this javascript

HTML



What I have tried:

I tried implementing colorbox but in vain.
Posted
Updated 10-Oct-16 22:08pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900