phorcon3 Posted August 3, 2008 Share Posted August 3, 2008 var string = '<input type="hidden" name="field" value="1" />'; how do i get the value through javascript? Link to comment https://forums.phpfreaks.com/topic/117954-solved-javascript-match-function/ Share on other sites More sharing options...
phorcon3 Posted August 3, 2008 Author Share Posted August 3, 2008 var string = '<input type="hidden" name="field" value="1" />'; var new_string = string.match('/input type="hidden" name="field" value="(.*)"/'); but that doesnt do the trick for some reason.. Link to comment https://forums.phpfreaks.com/topic/117954-solved-javascript-match-function/#findComment-606753 Share on other sites More sharing options...
phorcon3 Posted August 3, 2008 Author Share Posted August 3, 2008 document.getElementById('test').innerHTML = new_string; = null dunno what im doin wrong.. Link to comment https://forums.phpfreaks.com/topic/117954-solved-javascript-match-function/#findComment-606757 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.