im trying to trigger a load event (for example set default value) on my textfield using this:
$("#textfield1").on("load" , function(){
$("#textfield1").val("WEEE");
});
which won’t work.
If i do this:
$(document).ready(function() {
$("#textfield1").val("WEEE");
});
or this:
$("body").on("load" , function(){
$("#textfield1").val("WEEE");
});
then i get the desired effect. am i using the load wrongly in the first snippet?
via .load()
So, basically yes: the textfield will never fire the
loadevent.