I am trying to right form with XHTML strict.
Can anyone suggest how to change javascript names to ids.
I have following script:
Code:function changeImageInfo(imageURL,title) { document.big_image.src = imageURL; document.image_form.image_title.value = title; }
Would it be right if I will change it to:
Code:function changeImageInfo(imageURL,title) { document.getElementById('big_image').src = imageURL; document.getElementById('image_form'); document.getElementById('image_title').value = title; }







Bookmarks