<script type="text/javascript">function googleTranslateElementInit() {
var elem = new google.translate.TranslateElement({
pageLanguage: "ca",
layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,
autoDisplay: false,
floatPosition: 0
});
elem.onTurnOffLanguageClick = function() {
var event = document.createEvent("Event");
event.initEvent("translateExt_disable_lang", true, true);
document.body.dispatchEvent(event);
};
var style = document.createElement("style");
style.appendChild( document.createTextNode( ".global_header { top: 40px !important; }" ) );
document.getElementsByTagName( "head" )[ 0 ].appendChild( style );
elem.showBanner(false);
}</script>
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
Thursday, 25 September 2014
Google Translator plugin for Browsers in Js
Tuesday, 23 September 2014
Bootstrap select box load in dynamically
$('[data-rel="chosen"],[rel="chosen"]').chosen(); // Call this line of script when even to load bootstrap selectbox
How to convert string to number or integer in js?
var str = "123";
alert(str+"---"+typeof(str));
str = Number(str);
alert(str+"---"+typeof(str));
alert(str+"---"+typeof(str));
str = Number(str);
alert(str+"---"+typeof(str));
Input field enter integer only in jQuery
$(document).ready(function () {
//called when key is pressed in textbox
$("#quantity").keypress(function (e) {
//if the letter is not digit then display error and don't type anything
if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
//display error message
$("#errmsg").html("Digits Only").show().fadeOut("slow");
return false;
}
});
});
Number :
<input type="text" name="quantity" id="quantity" /> <span id="errmsg"></span>
Wednesday, 17 September 2014
How to get checked values in checkbox in dynamically by using jquery and javascript?
var chkArray = [];
$(".chk:checked").each(function() {
chkArray.push($(this).val());
});
var selected;
selected = chkArray.join(',') + ",";
if(selected.length > 1){
alert("You have selected " + selected);
}else{
alert("Please at least one of the checkbox");
}
Saturday, 13 September 2014
How to remove TV Wizard ads
Windows Vista and Windows 7
Click Start.
Select Control Panel.
Click Uninstall a program.
Remove TV Wizard.
Windows XP
Click Start.
Select Control Panel.
Click Add or Remove Programs.
Uninstall the adware program.
Windows 8
Move the mouse pointer do the lower-left corner of the screen.
Right-click.
Select Control Panel.
Click Uninstall a program.
Remove the unwanted program.
Subscribe to:
Comments (Atom)
Feet/Inches to Meters Converter & Lbs to Kgs Converter
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Feet/Inches ⇄...
-
<?php $to = "somebody@example.com, somebodyelse@example.com"; $subject = "HTML email"; $message = " <h...
-
document.onkeydown = myKeyDownHandler; function myKeyDownHandler(event){ alert(event.keyCode) }
-
<?php $date1 = "2015-01-23 00:20"; $date2 = "2015-01-23 05:30"; $seconds = strtotime($date2) - strtotime($date1);...