PDA

View Full Version : Resolved Java script



dark o
04-24-2010, 12:30 AM
:o Hi im new to this this the first time for me needing help on java code....

ok i need help on my index page im trying to use a form thats a HTML form with a drop down list in my main site on 23 images....

well what i have is 23 thumb images that when you click on one... it loads a lightbox... this light box has an image and a form.... with a button ...

well wat i want to achieve is to do the same on all 23 images without having to write the form 23 times for each image....
i have try.....

<script type="text/javascript">
txt=document.getElementById("form1").innerHTML;
document.write("" + txt + "");
</script>

and works when you click on the drop down list form... but when i choose something and click the submit button nothing happens.....


or is it that im using the wrong code.....


NVM....... already found the bug..... it was on the form name..............
NVM....... already found the bug..... it was on the form name..............

i knew i wasn't 4 getting JAVA....