asp.net - How can I use jQuery to make a validation icon appear somewhats slowly, fading in -


Even so far away from me, but not really working (I have my explorer's solution explorer Has dragged the jQuery.js file from.

  <% @ Page Language = "C #" AutoEventWireup = "true" CodeBehind = "Default.aspx .cs" Inherits = "SignUpFormTest ._Default "%" gt; & gt; DOCTYPE HTML Public "- // W3C // DTD XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional. Dtd ">  gt; head run =" server "> gt; & gt; title & gt; & lt; / Title> gt; script src = " Script / jquery-1.4.min.js "type =" text / javascript "> gt; & lt; / script & gt; script type =" text / javascript "& gt; $ (document) .ready (function Fade ($ "name") in the context of what is inside the {// Developer's tag.} Fidine ("slow");});   & Lt; Div id = "name" & gt; Asp: RequiredFieldValidator id = "valTxtName" ControlToValidate = "txtName" error message = '& lt; Img src = "../ images / no page" & gt; ' Runat = "server" /> gt; & Lt; / Div & gt; & Lt; Br / & gt; & Lt; ASP: Button ID = "BTN submit" text = "run" = "server" /> & Lt; / Form & gt; & Lt; P & gt; Hint: Try submitting something before you enter it & lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Just pops up while validating the icon.

No fade or nothing. Apart from this, I know that my current solution is hacking, so I would really like to tell anyone what I should do instead of creating a DIV tag for the purpose of animation.

Ensure that the context of JQuery is valid and use this code:

  $ (document) .ready (function () {$ ('# name'). Hide (). Feedin ("slow");});  

If I'm not mistaken, since the div is already visible in your case, then jQuery will not fade it. Hide () The method ensures that the device is not initially visible and then gradually fades up.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -