Category Archives: JavaScript

jQuery changing form values not affecting the DOM

With jQuery it is very easy to change the value of a form element, here’s a quick example that changes the text for a form element with id=’input1′ $(’#input1′).val(’this is the new value’); On the page you will see your … Continue reading

Posted in JavaScript | Leave a comment

Writing dynamic iframe content with JavaScript

I recently had the need to put a preview of some HTML in a page for a content management system. Simply inserting the HTML into the page wasn’t any good because it would then use the pages styling and so … Continue reading

Posted in JavaScript | Leave a comment