How to do simple jquery alert window? -


I have tried the following for a simple query warning popup but always receives the error that the object does not support the property /way. Any thoughts that I am doing wrong?

  & lt; Script & gt; $ (Function () {("#hello"). Show ()}); & Lt; / Script & gt;   

and

  & lt; Script & gt; $ (Function () {("#hello") dialog ()}); & Lt; / Script & gt;   

HTML

  & lt; div id = "hello" & gt; testing. & Lt; / Div & gt;    

You can enter $ symbol ( JQuery ) As well as the jQuery UI library

  & lt; link Href = "http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" rel = "stylesheet" /> & gt; script src = "https: // ajax .googleapis.com / ajax / libs / jquery / 2.1.1 / jquery.min.js "& gt; & lt; / script & gt; & lt; script src =" http://code.jquery.com/ui /1.9.2/jquery-ui.js ">  
test

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -