This article mainly introduces jquery to verify the email format and display the submit button. The submit button is displayed only when the email address is entered correctly. For more information, see
Brief tutorial
Simple, generous, and intuitive user interfaces are our favorite webpage designs. This article introduces such a design style.
How can we make the page simple, generous, and user-friendly? Most website forms use text prompts, prompting users where they are entered incorrectly an
parent nodeVisual Filter Selector:$ ("Div:hidden") Select all the hidden div elements$ ("div:visible") Select all of the visual DIV elementsAttribute Filter Selector:$ ("Div[id]") Select all DIV elements that contain the id attribute$ ("input[name= ' newsletter ')" selects all the name attributes equal to the INPUT element of ' newsletter '$ ("input[name!= ' newsletter
containing the ID attribute$ ("Input [name = 'newsletter ']") Select the input element whose name attribute is equal to 'newsletter'.
$ ("Input [name! = 'Newsletter'] ") Select the input element whose name attribute is not equal to 'newsletter '.
$ ("Input [name ^ = 'News']") select all input elements whose name attri
elementsAttribute Filter Selector:$ ("Div[id]") Select all DIV elements that contain the id attribute$ ("input[name= ' newsletter ')" selects all the name attributes equal to the INPUT element of ' newsletter '$ ("input[name!= ' newsletter ')" selects all the name attribute not equal to ' newsletter ' INPUT element$ (
") Select all of the visual DIV elementsAttribute Filter Selector:$ ("Div[id]") Select all DIV elements that contain the id attribute$ ("input[name= ' newsletter ')" selects all the name attributes equal to the INPUT element of ' newsletter '$ ("input[name!= ' newsletter ')" selects all the name attribute not equal to ' newsl
DIV elements that contain the id attribute$ ("input[name= ' newsletter ')" selects all the name attributes equal to the INPUT element of ' newsletter '$ ("input[name!= ' newsletter ')" selects all the name attribute not equal to ' newsletter ' INPUT element$ ("input[name^= ' News ')") Select all the name attributes to
$ ("Input [name = 'newsletter ']") Select the input element whose name attribute is equal to 'newsletter'.
$ ("Input [name! = 'Newsletter'] ") Select the input element whose name attribute is not equal to 'newsletter '.
$ ("Input [name ^ = 'News']") select all input elements whose name attributes start with 'News '.
$
Jquery verifies the email format and displays the submit button. jquery verifies the email button.
Brief tutorialSimple, generous, and intuitive user interfaces are our favorite webpage designs. This article introduces such a design style.
How can we make the page simple, generous, and user-friendly? Most website forms use text prompts, prompting users where they are entered incorrectly and where they are incorrect, but we should be able to do better: if they are entered incorrectly, the submi
parent nodeVisual Filter Selector:$ ("Div:hidden") Select all the hidden div elements$ ("div:visible") Select all of the visual DIV elementsAttribute Filter Selector:$ ("Div[id]") Select all DIV elements that contain the id attribute$ ("input[name= ' newsletter ')" selects all the name attributes equal to the INPUT element of ' newsletter '$ ("input[name!= ' newsletter
that contain p tags$ ("td:parent") Select all the element array with TD as parent nodeVisual Filter Selector:$ ("Div:hidden") Select all the hidden div elements$ ("div:visible") Select all of the visual DIV elementsAttribute Filter Selector:$ ("Div[id]") Select all DIV elements that contain the id attribute$ ("input[name= ' newsletter ')" selects all the name attributes equal to the INPUT element of ' newsletter
Brief tutorialThe simple, generous and intuitive user interface is our favorite Web design. This article is about the design of such a style.
How to make the page simple and generous and humane? Most of the Web site's form using text prompts the method, prompting the user where to fill out the wrong, where is not correct, but we should be able to do better: fill out incorrectly do not show the Submit button!HTML Structure
Javascript:Check that the input text is a correct email
all DIV elements that contain the id attribute $ ("input[name= ' Newsletter ']"Select all the Name property equals'Newsletter'the INPUT element $ ("input[name!= ' Newsletter ']"Select all the Name property is not equal to'Newsletter'the INPUT element $ ("input[name^= ' News ']") Select all the name properties to'News'the INPUT element starting with $ ("input[name$= ' News ']") Select all the name propertie
Descendant")HTML codeform> label>Name:label> inputname= "name" /> fieldset> label>Newsletter:label> inputname= "newsletter" /> fieldset>form>inputname= "none" />jquery Code$ ("form Input")Resultsname= "name"/>name= " Newsletter "/>
Parent > Child
Child selector: matches all specified child elements under the given parent element (it is different from the background element, look
user cannot unsubscribe
$ Text_block ="
You cannot find your email address in the list!
You have not been unsubscribed because the email you entered is not in the database. "; } Else { // If $ check_num is not 0, the user is in the list and can be unsubscribed. $ SQL = "delete from subscribersWhere email_addr = \ "$ email \""; @ Mysql_query ($ SQL) or die ("email cannot be deleted. "); $ Text_block ="
Unsubscribe successful!
";
}
}
?>
Subscription/unsubscription
delete email.) ");
$text _block = "";}
}?>
--------------------------------------------------------------------------------Now that you have the appropriate subscription/unsubscribe mechanism, I will show you how to send a newsletter, using only a simple form and a mail script. (the "While" loop is a good friend of yours!) )。 First, it's a form called "send_mail.html." The action of the form should be something like "do_send_mail.phtml", and I us
e-mail marketing, known as an EDM, is an acronym for Email Direct Marketing, a network marketing tool that delivers value information to target users in the form of e-mail, with the prior permission of the user. Mail push is one of the most effective means of interacting with users, so any one platform needs to communicate with users, mail push system is an essential link.
This article mainly explains how to use Drupal to build a mail push system, to achieve user subscription mail delivery.
be selected, therefore, in this case, it is best to use a unique selector to complete the conditional filtering with contains (text //
$ ("Td: empty") Select an array of all td elements that are empty (or contain text nodes)
$ ("Div: has (p)") Select All div elements containing the p tag
$ ("Td: parent") Select All element arrays with td as the parent node
Visual filter Selector:
$ ("Div: hidden") select all the div elements to be hidden.
$ ("Div: visible") Select All visualized div elements
At
: Find all the name attribute is newsletter INPUT element$ ("input[name= ' newsletter ')";
[Attribute^=value], matching a given property is an element that starts with some value.
For example: Find all the name attribute is newsletter INPUT element$ ("Input[name= ' News ']");
[Attribute!=value], matching all attributes that do not contain t
Problem:
When you use PowerPoint 2007 to open a large or complex newsletter that was built with older versions of PowerPoint, the briefing is much slower to open than expected.
If you want to resolve this issue, save your newsletter as a PowerPoint 2007 newsletter. If you want to perform this action, follow these steps:
1. Opening large or complex briefings in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.