Hi all,
I a newbie to jQuery and Javascript. In the process of enabling a modal box with Overlay and Expose, I am stuck in wring the correct function in order to get it work.
I have successfully done the job when having some a href or button with rel attributes, so I am confident, that I get the basics right.
On select/option, I fail to write the function to fire the event. Is there a way of using the option value to place my overlay ID?
Here some code for my html:
I a newbie to jQuery and Javascript. In the process of enabling a modal box with Overlay and Expose, I am stuck in wring the correct function in order to get it work.
I have successfully done the job when having some a href or button with rel attributes, so I am confident, that I get the basics right.
On select/option, I fail to write the function to fire the event. Is there a way of using the option value to place my overlay ID?
Here some code for my html:
<form action="" name="foobar" id="foobar">
<select name="foo" id="bar">
<option>Do some stuff</option>
<option>----------------</option>
<option value="#boxAsk">Ask</option>
<option value="#boxDone">Done</option>
<option value="#boxError">Error</option>
</select>
</form>
And the function, within my document ready function:
$(function() {
// initialize overlay trigger
$('#bar option[value]').overlay({
expose: '#222',
finish: {
top: 200,
left: 309
}
});
});
I appreciate any hints. Thank you.