Showing posts with label Html. Show all posts
Showing posts with label Html. Show all posts

Friday 18 May 2018

Multple checkbox selected or not

<script type="text/javascript" src='jquery.js'></script>
<script type="text/javascript">
$(document).ready(function() {
$('#extend_auto_expired').click(function(){
$("input[type=checkbox]:checked").each(function() {
alert( $(this).val() );
});
});
});
</script>
<center>
<form name='ck'>
<?php
for($r=0; $r<10;$r++){
echo "<input type='checkbox' name='t[]' value='$r'>$r<br>";
}
?>
<input type="button" id="extend_auto_expired" value="Extend auto expired" class="buttongreen" name="Submit">
</form>
<center>

Friday 14 November 2014

PHP mail() Function with html content type

<?php
$to = "somebody@example.com, somebodyelse@example.com";
$subject = "HTML email";

$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

// More headers
$headers .= 'From: <webmaster@example.com>' . "\r\n";
$headers .= 'Cc: myboss@example.com' . "\r\n";

mail($to,$subject,$message,$headers);
?>

Thursday 16 October 2014

SVG Image Example

SVG IMAGE Examlpe
SVG Image
<html>
<title>SVG Image</title>
<body>
<h1>Sample SVG Image</h1>
<svg width="100" height="100">
  <circle cx="50" cy="50" r="40" stroke="red" stroke-width="2" fill="green" />
</svg>
</body>
</html>

Thursday 9 October 2014

Enter Floating Number only

Input field onkeyup check floating values only to allow
onkeyup="if (!isFinite(this.value)) this.value = this.value.replace(/(\s+)?.$/,'')"

Thursday 25 September 2014

How to add segment insertAfter specific id in jQuery?

<html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(){ $("<p id=3>Hello world!</p>").insertAfter("#1"); }); }); </script> </head> <body> <button>Insert span element after each p element</button> <p id="1">This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>

Tuesday 19 August 2014

Wednesday 6 August 2014

Wordwrap in CS3 Html style

<?php
$t="LognTEXTLognTEXTLognTEXTLognTEXTLognTEXTLognTEXTLognTEXTLognTEXTLognTEXT";
echo "$t<br/>";
?>
<div style="width:100px;border:1px solid red;word-wrap: break-word;">
<?php echo $t; ?>
</div>

Friday 20 June 2014

How to get Json Edncoded value in js


var resp ="" //Json Value
var objJSON = eval("(function(){return " + resp + ";})()");
objJSON.name // Value

Thursday 19 June 2014

HTML Special character and how to use that code


To do this... Type this... Or this... Description
   &lsquo; left single quote
   &rsquo; right single quote
   &sbquo; single low-9 quote
   &ldquo; left double quote
   &rdquo; right double quote
   &bdquo; double low-9 quote
   &dagger; dagger
   &Dagger; double dagger
   &permil; per mill sign
   &lsaquo; single left-pointing angle quote
   &rsaquo; single right-pointing angle quote
   &spades; black spade suit
   &clubs; black club suit
   &hearts; black heart suit
   &diams; black diamond suit
   &#9733; black star
   &#9734; white star
   &oline; overline, = spacing overscore
   &larr; leftward arrow
   &uarr; upward arrow
   &rarr; rightward arrow
   &darr; downward arrow
©   &copy; &#169; copyright sign
   &trade; trademark sign
&#00;-
&#08;
unused
&#09; horizontal tab
&#10; line feed
  &nbsp; &#160; Non-breaking space
&#32; space
!   &#33; exclamation mark
"   &quot; &#34; double quotation mark
#   &#35; number sign
$   &#36; dollar sign
%   &#37; percent sign
&   &amp; &#38; ampersand
'   &#39; apostrophe
(   &#40; left parenthesis
)   &#41; right parenthesis
*   &#42; asterisk
+   &#43; plus sign
,   &#44; comma
-   &#45; hyphen
.   &#46; period
·   &middot; &#183; middle dot
   &#149; bullet
/   &frasl; &#47; slash
0 - 9 &#48;-
&#57;
digits 0-9
:   &#58; colon
;   &#59; semicolon
<   &lt; &#60; less-than sign
=   &#61; equals sign
>   &gt; &#62; greater-than sign
?   &#63; question mark
@   &#64; at sign
A - Z &#65;-
&#90;
uppercase letters A-Z
[   &#91; left square bracket
\   &#92; backslash
]   &#93; right square bracket
^   &#94; caret
_   &#95; horizontal bar (underscore)
`   &#96; grave accent
a - z &#97;-
&#122;
lowercase letters a-z
{   &#123; left curly brace
|   &#124; vertical bar
/   &frasl; &#47; slash
°   &deg; &#176; degree sign
±   &plusmn; &#177; plus or minus
²   &sup2; &#178; superscript two
³   &sup3; &#179; superscript three
´   &acute; &#180; acute accent
µ   &micro; &#181; micro sign
   &para; &#182; paragraph sign
¸   &cedil; &#184; cedilla
¹   &sup1; &#185; superscript one
º   &ordm; &#186; masculine ordinal
   &raquo; &#187; right angle quote
¼   &frac14; &#188; one-fourth
½   &frac12; &#189; one-half
¾   &frac34; &#190; three-fourths
¿   &iquest; &#191; inverted question mark
À   &Agrave; &#192; uppercase A, grave accent
Á   &Aacute; &#193; uppercase A, acute accent
   &Acirc; &#194; uppercase A, circumflex accent
à  &Atilde; &#195; uppercase A, tilde
Ä   &Auml; &#196; uppercase A, umlaut
Å   &Aring; &#197; uppercase A, ring
Æ   &AElig; &#198; uppercase AE
Ç   &Ccedil; &#199; uppercase C, cedilla
È   &Egrave; &#200; uppercase E, grave accent
É   &Eacute; &#201; uppercase E, acute accent
Ê   &Ecirc; &#202; uppercase E, circumflex accent
Ë   &Euml; &#203; uppercase E, umlaut
Ì   &Igrave; &#204; uppercase I, grave accent
Í   &Iacute; &#205; uppercase I, acute accent
Π  &Icirc; &#206; uppercase I, circumflex accent
Ï   &Iuml; &#207; uppercase I, umlaut
Р  &ETH; &#208; uppercase Eth, Icelandic
Ñ   &Ntilde; &#209; uppercase N, tilde
Ò   &Ograve; &#210; uppercase O, grave accent
Ó   &Oacute; &#211; uppercase O, acute accent
Ô   &Ocirc; &#212; uppercase O, circumflex accent
Õ   &Otilde; &#213; uppercase O, tilde
Ö   &Ouml; &#214; uppercase O, umlaut
×   &times; &#215; multiplication sign
Ø   &Oslash; &#216; uppercase O, slash
Ù   &Ugrave; &#217; uppercase U, grave accent
Ú   &Uacute; &#218; uppercase U, acute accent
Û   &Ucirc; &#219; uppercase U, circumflex accent
Ü   &Uuml; &#220; uppercase U, umlaut
Ý   &Yacute; &#221; uppercase Y, acute accent
Þ   &THORN; &#222; uppercase THORN, Icelandic
ß   &szlig; &#223; lowercase sharps, German
à   &agrave; &#224; lowercase a, grave accent
á   &aacute; &#225; lowercase a, acute accent
â   &acirc; &#226; lowercase a, circumflex accent
ã   &atilde; &#227; lowercase a, tilde
ä   &auml; &#228; lowercase a, umlaut
å   &aring; &#229; lowercase a, ring
æ   &aelig; &#230; lowercase ae
ç   &ccedil; &#231; lowercase c, cedilla
è   &egrave; &#232; lowercase e, grave accent
é   &eacute; &#233; lowercase e, acute accent
ê   &ecirc; &#234; lowercase e, circumflex accent
ë   &euml; &#235; lowercase e, umlaut
ì   &igrave; &#236; lowercase i, grave accent
í   &iacute; &#237; lowercase i, acute accent
î   &icirc; &#238; lowercase i, circumflex accent
ï   &iuml; &#239; lowercase i, umlaut
ð   &eth; &#240; lowercase eth, Icelandic
ñ   &ntilde; &#241; lowercase n, tilde
ò   &ograve; &#242; lowercase o, grave accent
ó   &oacute; &#243; lowercase o, acute accent
ô   &ocirc; &#244; lowercase o, circumflex accent
õ   &otilde; &#245; lowercase o, tilde
ö   &ouml; &#246; lowercase o, umlaut
÷   &divide; &#247; division sign
ø   &oslash; &#248; lowercase o, slash
ù   &ugrave; &#249; lowercase u, grave accent
ú   &uacute; &#250; lowercase u, acute accent
û   &ucirc; &#251; lowercase u, circumflex accent
ü   &uuml; &#252; lowercase u, umlaut
ý   &yacute; &#253; lowercase y, acute accent
þ   &thorn; &#254; lowercase thorn, Icelandic
ÿ   &yuml; &#255; lowercase y, umlaut

Wednesday 18 June 2014

Enter Integrr Number only


Enter Integer only in text fileds
onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')"