サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Wikipedia
www.texotela.co.uk
Allows only valid characters (i.e. numbers) to be typed into a text box. Can take negative numbers and a decimal point. You can supply a callback that runs when focus is lost and the value in the text box is not a valid number. Source code available from GitHub or a Zipped download. $("input.numeric").numeric() $("input.numeric").numeric(null, numberInvalid). Calls numberInvalid if the text in the
Replace headings (or any text) with images. Parameters format - Image format/file extension (e.g. png, gif, jpg) - ignored if specifying the filename in the class path (optional) - Path to images folder onload (optional) - Function to run when image has loaded Download source code | Changelog (latest update: 17 Apr 2007) Example For example, imagine the following structure: <h1 id="heading1" clas
Add an outline and background to text inputs when they are given focus. Does not work with jQuery 1.2 at the moment, only 1.0 and 1.1) This plugin is available for download via jQuery SVN Parameters oColour - Outline colour oWidth - Outline width bgColour - Background colour textColour - Text Colour Examples Default settings: $("input.text, textarea.text").focusFields() Different outline color: $(
toggleCheckboxes Use: $("#myform").toggleCheckboxes(); to toggle all checkboxes in '#myform'. Ignore checkboxes matching a jQuery expression : $("#myform").toggleCheckboxes(":not(#checkbox1)"); Return the checked items: $("#myform").toggleCheckboxes(".top5", true); (use "*" instead of ".top5" if you want to toggle all of them) checkCheckboxes Use: $("#myform").checkCheckboxes(); to check all check
Update 27 April 2007: more examples. Bug fixes (multiple tickers on pages should work fine now) and examples of adding a news ticker dynamically. A news ticker (not new sticker!) plugin based on snippets from this discussion: News scroller/ticker with jQuery?. Sequentially iterates though items in an unordered list, showing the current one and hiding the previous one. If you the mouse is currently
This plugin is available for download via jQuery SVN | ChangeLog My Select: My Select 2: addOption You can add a single option: $("#myselect").addOption("Value", "Text");, change the text of an existing option: $("#myselect").addOption("Value", "Text Replacement"); or add multiple options using a hash: var myOptions = { "Value 1" : "Text 1", "Value 2" : "Text 2", "Value 3" : "Text 3" } $("#myselec
このページを最初にブックマークしてみませんか?
『www.texotela.co.uk』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く