How to indent HTML tags in Notepad++ - Stack Overflow
stackoverflow.com/questions/.../how-to-indent-html-tags-in-notepad
Robert Dannelly blog, Over the internet you can find me by "robert dannelly blog". The blog is an ongoing blog of my software engineering over technologies C#, VB.NET, Java, React, JavaScript, .NET Core Current, SQL Server 7 - Current Version, GIT, GitHub, Jira, Azure, AWS and HTML5. “I have not failed. I've just found 10,000 ways that won't work.” Thomas A. Edison, please click on all links to help support this blog. Thank you. “As an Amazon Associate, I earn from qualifying purchases.”
$(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>