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? Quote Link to comment 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.. Quote Link to comment 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.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.