![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 211 Pomógł: 4 Dołączył: 29.10.2008 Ostrzeżenie: (0%) ![]() ![]() |
Mam taki kod:
Kod $("input[type='text']").keypress(function(e) { }) Chodzi o oto, że chce przed keypress dac coś w stylu pe='text']").ready(function(){}).keyp lub pe='text']").load(function(){}).keyp . Jednak żadne z tych nie działa. Czy jest coś takiego jak jakby .create. Wiadomo o co chodzi? Ten post edytował expert 10.01.2013, 19:59:34 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 2 350 Pomógł: 512 Dołączył: 4.01.2009 Skąd: Wrocław / Świdnica Ostrzeżenie: (0%) ![]() ![]() |
Rzeczywiście jQuery zabrania:
Cytat Note: jQuery prohibits changing the type attribute on an <input> or <button> element and will throw an error in all browsers. This is because the type attribute cannot be changed in Internet Explorer. Zrób tak jak pisałem( pod IE możliwe, że się nie da zrobić ze względów bezpieczeństwa ): Kod $(function() { $("input[type='text']").each(function(i,j){ $(this).get(0).setAttribute("type","password"); }); }); --edit-- Cytat kąbinuję czemu. http://www.sjp.pl/kombinowa%E6 Ten post edytował kamil4u 11.01.2013, 20:35:07 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 05:27 |