This is what i have. the out put i get is C./FAKE PATH/(value). I just want it to show the value not the C./FAKE PATH/.
$('#inputid').change(function(){
var value =$(this).val();
alert(value);
})
This is what i have. the out put i get is C./FAKE PATH/(value). I just want it to show the value not the C./FAKE PATH/.
$('#inputid').change(function(){
var value =$(this).val();
alert(value);
})
You can use split('/').pop()
to get anything after the last /
.
E.G:
$('#inputid').change(function(){
var value = $(this).val().split('/').pop();
alert(value);
})