Babban matsala tare da yin amfani da jquery cire karantawa kawai shine yana iya haifar da matsala lokacin ฦoฦarin amfani da aikin $ (). Wannan aikin yana ba ku damar samun damar mallakar abu, amma idan an karanta abin kawai to aikin $() ba zai yi aiki ba.
attribute from input $("input").removeAttr("readonly");
Wannan layin lambar yana amfani da jQuery don cire sifa "karanta kawai" daga duk abubuwan shigarwa akan shafin.
Menene jQuery kawai?
readonly shine jQuery plugin wanda ke yin abubuwa da halayen karantawa-kawai. Wannan yana nufin cewa mai amfani ba zai iya canza su ba, amma har yanzu ana iya samun dama da sarrafa su ta hanyar plugin ษin.
Me yasa amfani da karantawa kawai jQuery
Mobile
ฦayan dalili na amfani da jQuery kawai a cikin jQuery Mobile shine don kauce wa yuwuwar rikice-rikice tare da wasu rubutun da ka iya gudana akan shafin. Idan rubutun ya ฦunshi sifa na karantawa kawai, ba za a aiwatar da shi ba lokacin da aka loda shafin. Wannan zai iya taimakawa don kiyaye lambar ku mafi tsari da sarrafawa.