[jQuery] How to define/access public functions for a plugin?

2010-01-04 Thread mehdi
I need to get the selected value of $myList this way: var value = $.smartList.getSelectedValue($myList); Is there any better approach to address such a thing? Any help would be highly appreciated, TIA, Mehdi

[jQuery] find and replace

2009-04-28 Thread kazim mehdi
hi by using the following code i am able to find only first occurrences of the keywords can anyone help me to make it work for all of the occurrences. thank you function test() { var keywords = ["got", "the"]; var el = $("body");

[jQuery] Rewrite $('slide-images').getElementsByTagName('li'); with JQuery

2008-12-22 Thread Mehdi Saghari
how can i rewrite this function using JQuery ?! function init() { var lis = $('slide-images').getElementsByTagName('li'); for( i=0; i < lis.length; i++){ if(i!=0){ lis[i].style.display = 'none'; }