Harrisonm

All Online Tools

Below a collection of free online tools that I have been using for a while. I’ve found them useful and I hope that other users and developers find them useful too. http://beautifytools.com/Read more …

To Print Div

<script type=”text/javascript”> function PrintElem(elem) { Popup($(elem).html()); } function Popup(data) { var mywindow = window.open(”, ‘mydiv’, ‘height=400,width=600’); mywindow.document.write(‘<html><head><title>my div</title>’); /*optional stylesheet*/ //mywindow.document.write(‘<link rel=”stylesheet” href=”main.css” type=”text/css” />’); mywindow.document.write(‘</head><body >’); mywindow.document.write(data); mywindow.document.write(‘</body></html>’); mywindow.document.close(); // necessary for IE >= 10 mywindow.focus(); // necessary for IE >= 10 mywindow.print(); mywindow.close(); return true; } </script>Read more …
cavinz

How To Remove Comma Separated Value From INPUT OR STRING using Jquery Or Javascript ?

Here is the function for remove comma separated value from input or string , function removeValue(list, value) { if( list.indexOf(‘,’+value+’,’) != -1 ){ return list.replace(new RegExp(‘,?’+ value + ‘,?’), ‘,’); } else{ return list.replace(new RegExp(‘,?’+ value + ‘,?’), ”) } } where list = VALUE OF STRING; value= SEARCH VALUE;...Read more …