Hi,i have this code that comes from the server side:

 <select name="ctl00$m
$g_871540ea_7c11_4663_ad02_763d4efb7a80$ctl00$ctl02$ctl00$ctl01$ctl00$ctl00$ctl11$ctl00$ctl00$ctl04$ctl00$ctl00$Elemento"
onchange="javascript:setTimeout('WebForm_DoPostBackWithOptions(new
WebForm_PostBackOptions(&quot;ctl00$m
$g_871540ea_7c11_4663_ad02_763d4efb7a80$ctl00$ctl02$ctl00$ctl01$ctl00$ctl00$ctl11$ctl00$ctl00$ctl04$ctl00$ctl00$Elemento&quot;,
&quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))', 0)"
id="ctl00_m_g_871540ea_7c11_4663_ad02_763d4efb7a80_ctl00_ctl02_ctl00_ctl01_ctl00_ctl00_ctl11_ctl00_ctl00_ctl04_ctl00_ctl00_Elemento"
title="Nombre de elemento Parent" class="ms-input">
                                        <option selected="selected" 
value="">Please select an Item</
option>
                                        <option value="5">1.4</option>

                                </select>

as you can see, it has an onchange event.
Then, i have this jQuery statement, where ctr is the select drop down:

ctr.bind("change", function(eventin) {
         // then some ajax code to  bring some info and put it in a
div.
}


the fact is, that    when i choose an option from the select,  fires
the event in the bind , and then fires  the postback event in the
onchange.

Is there a way to warantee that only the bind event will fire?

I've tried without success:
- , using preventDefault inside the bind function:
eventin.preventDefault();
-  using the stopPropagatino insinde the bind function :
eventin.stopPropagation();
- returning false from the bind function.
- making an unbind before the binding : ctr.unbind();

neither of those options worked for me,  any sugggestions would be
appreciated :)
-

Reply via email to