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 …
cavinz

How to change URL Without Refreshing Page Using Javascript?

Here is the function to change URL without refreshing page. function ChangeUrl(page, url) { if (typeof (history.pushState) != “undefined”) { var obj = { Page: page, Url: url }; history.pushState(obj, obj.Page, obj.Url); } else { alert(“Browser does not support HTML5.”); } } Call this function like this , ChangeUrl(YOUR TITTLE,YOUR...Read more …