ArnisR Posted August 8, 2010 Report Share Posted August 8, 2010 Kā ar jQuery dabūt šīs formas Submit pogas VALUE atribūtu? (type=submit) $('form').submit(function(e) { }); Quote Link to comment Share on other sites More sharing options...
0 codez Posted August 8, 2010 Report Share Posted August 8, 2010 $('form').submit(function(){ a=$(this).find('input[type=submit]').val(); console.info(a); return false; }); return false, ja negrib, lai forma nopostotos. Quote Link to comment Share on other sites More sharing options...
0 ArnisR Posted August 8, 2010 Author Report Share Posted August 8, 2010 Paldies! .find() bija tas, kas vajadzīgs! Quote Link to comment Share on other sites More sharing options...
0 briedis Posted August 8, 2010 Report Share Posted August 8, 2010 Šādas lietas jau nu pašam vajadzēja spēt atrast manuālī: http://docs.jquery.com/Main_Page Ja uz katru šādu sīkumu prasa palīdzību forumā, švaka produktivitāte sanāks... Quote Link to comment Share on other sites More sharing options...
Question
ArnisR
Kā ar jQuery dabūt šīs formas Submit pogas VALUE atribūtu? (type=submit)
$('form').submit(function(e) {
});
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.