How to indent HTML tags in Notepad++ - Stack Overflow
stackoverflow.com/questions/.../how-to-indent-html-tags-in-notepad
This blog shares my journey as a software engineer, along with personal reviews and life experiences I’ve gained along the way. “I have not failed. I've just found 10,000 ways that won't work.” — Thomas Edison. If you enjoy my content, please support it by clicking on ads (free for you, big help for me!) or by buying me a coffee on Ko-fi. Thank you!
$(document).ready(function setFocus() { setTimeout(function () { $('#txtEmailAddress').focus(); }, 420); // After 420 ms return false; });
<div id="message"> <div> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <span id="alertMsgTxt" style="font-size:1.5em;font-weight:bold" ></span> </div> </div> </div>
<asp:TextBox ID="txtEmailSignup" TextMode="email"
runat="server" CssClass="form-control" title="Email Sign Up SHOE SHOW Sales and News" placeholder="Enter your email address" />
<script> $(document).ready(function () { $(document).on('click', '#lnkEmailSubmit', function () { var emailaddress = ''; emailaddress = $('#txtEmailSignup').val(); if(!validateEmail(emailaddress) || emailaddress === ''){ $('.alert').show(); window.scrollTo(0, 0); $('#alertMsgTxt').html('Invalid Email, please click here to try again.'); } }) }); function setFocus() { $('.alert').hide(); document.getElementById("txtEmailSignup").focus(); } function validateEmail($email) { var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; return emailReg.test( $email ); } </script>