<a class="drop icon-circle" href="#!" onclick="javascript:toggleFullScreen()"> <i class="icon-size-fullscreen"></i> </a>
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
Friday, 29 December 2017
Js fullscreen browser
Thursday, 21 December 2017
Saturday, 16 December 2017
Jquery get element each method
$( "li" ).each(function( index ) { console.log( index + ": " + $( this ).text() ); });
Jquery allow decimal & integer script
$(document).ready(function(){ $(".notallowdec").keypress(function (e){ if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57) ) { return false; }else{ } }); $('.allowdec').keypress(function(event){ if ((event.which != 46 || $(this).val().indexOf('.') != -1)&& (event.which < 48 || event.which > 57)) { if((event.which != 46 || $(this).val().indexOf('.') != -1)) { //alert('Multiple Decimals are not allowed'); } event.preventDefault(); } if(this.value.indexOf(".")>-1 && (this.value.split('.')[1].length > 1)) { //alert('Two numbers only allowed after decimal point'); //event.preventDefault(); } }); });
Subscribe to:
Posts (Atom)