$("select.autosubmit").parent().find("[EMAIL PROTECTED]").remove();
$("select.autosubmit").change(function(){ this.form.submit
(); });
is equivilent to$("select.autosubmit").change(function(){ this.form.submit(); }).parent().find("[EMAIL PROTECTED]").remove();
except that the later one only does the element selection once and jQuery object initialisation. It's a good idea to get into the habit of this for run-once functionality so that when you're working on the heavy stuff you optimise without thinking.
Blair
On 10/26/06, Truppe Steven <[EMAIL PROTECTED]> wrote:
Olaf Bosch schrieb:
> Oh great, this is the answer of my Post "Function from jquery_auto"
>
> Thank you, this works for me also:
>
> $(document).ready(function(){
> $(" select.autosubmit").parent().find("[EMAIL PROTECTED]").remove();
> $("select.autosubmit").change(function(){ this.form.submit(); });
> });
>
>
>
>
It's nice to hear that i helped someone here. Thanks for the post.
best regards,
Truppe Steven
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
