Hi all,
I need to simulate a click on a kss-ed element on my page's DOM.
I have a button element:
<button id="my_id" class="selected">...</button>
on which there is a KSS selector:
button.selected:click{
... do stuff
}
I open a popup window and, clicking on a anchor/button/whatever on it,
I need to simulate a click on that "button.selected". In this way kss
stuff should run etc.
I did something like:
<script>
function f(){
document.getElementById(my_id).click()
}
</script>
but it works if applied on a standard button (e.g. <button
tal:attributes="name string:theSubmitButton-$fieldName; id
string:theSubmitButton-$fieldName;" onClick="alert('The button was
clicked.');">...</button>), but not on kss-ed one...
any hint?
thanks, bye
massimo
_______________________________________________
Kss-devel mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kss-devel