How can I select the current DIV ?
Hi,
I need to use a lot of progressbar in a html page,
to handle each progressbar I am using a bar_id (each progressbar has a different bar_id):
<div class="progressbar<%= bar_id %> "></div>
<script type='text/javascript'>
$("div .progressbar<%= bar_id %>").progressbar({value: <%= val %>});
</script>
Are there some other way to do that ?
I'd like to remove the bar_id,
and use the "THIS" selector to select the current div:
<div class="progressbar">
<script type='text/javascript'>
$(this).progressbar({value: <%= val %>});
</script>
</div>
but it doesn't work.
Do you have any idea how I can accomplish that ?
thank you,
Alessandro