bankofalltrades
MIS
I'm trying to have a text box that the user will copy/paste a file destination into. I'm validating that the user pasted correctly and that the beginning of the string starts with \\ any ideas?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var myval = document.getElementById('myid').value;
if(myval.match("\") == "\"){
do whatever;
}
var myval = document.getElementById('myid').value;
if(myval.match("\") == null){
do whatever;
}
if(myval.substring(0,2) == "\\\\"){do whatever;}