You are developing a form that captures a user's email address by using HTML5 and jQuery. The form must capture the email address and return it as a query string parameter. The query string parameter must display the @ symbol that is used in the email address. You need to implement this functionality. How should you develop the form?
<!DOCTYPE html >
<html>
<head>
<script src=http://code.jquery.com/jquery-latest.js></script>
</head>
<body>
<form>
<input type=”text” name=”email” />
<input type=”submit” value=”submit” />
</form>
<script>
$(“form”).submit(function() {
var string;
[Missing Code 1]
[Missing Code 2]
return true;
});
</script>
</body>
</html>
Pick 2 items from the following code snippets which will provide the functionality requested.
Str = $(“form”).serialize();
Str = decodeURIComponent(str);
Str = $(“form”).contents.toString();
Str = $(“form”).toLocaleString();
Str = decodeURI(str);