JSFiddle - React, Tailwind, and code Playground

by Seetpal Singh

HTML

<script src="https://code.jquery.com/jquery-git2.min.js"></script>
<input type='file' id='creates' >

JavaScript

jQuery('#creates').on('change', function(){
var b	=	$(this).val();
console.log(b);
	b = b.split(/(\\|\/)/g).pop()
  console.log(b);
})