I've just read the documentation link that was given to me in the last
post and now i understand some basic stuff i havent done before.
Your example was a nice motivation to remove the .each since selectors
where made for this =).
Here's the final code, again thanks for all your replies.
/**
* Search select with class 'selectsubmit' and
* add an onchange event handler to the form
* to submit it on select changes.
*/
$(document).ready(function(){
changeSelects();
});
function changeSelects() {
// Remove submit button //
$(".selectsubmit").parent().find("[EMAIL PROTECTED]").remove();
// add onchange event handler //
$(".selectsubmit").change(function(){ this.form.submit(); });
}
best regards,
Truppe Steven
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/