Hi Guys im just Started to use jquery and this Stuff ,
I have 10 functions there are the same just a Number is changed !
#imgbutton1-10
#DIV1-10
can i use here a array and how ?
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton1').click(function() {
$('#DIV1').show('slow'); return false;}); });</script>
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton2').click(function() {
$('#DIV2').show('slow'); return false;}); });</script>
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton3').click(function() {
$('#DIV3').show('slow'); return false;}); });</script>
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton4').click(function() {
$('#DIV4').show('slow'); return false;}); });</script>
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton5').click(function() {
$('#DIV5').show('slow'); return false;}); });</script>
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton6').click(function() {
$('#DIV6').show('slow'); return false;}); });</script>
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton7').click(function() {
$('#DIV7').show('slow'); return false;}); });</script>
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton8').click(function() {
$('#DIV8').show('slow'); return false;}); });</script>
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton9').click(function() {
$('#DIV9').show('slow'); return false;}); });</script>
<script type="text/javascript"> $(document).ready(function(){$('#imgbutton10').click(function() {
$('#DIV10').show('slow'); return false;}); });</script>