Monday, March 22, 2010

city_select plugin to display list of indian city in dropdown list

city_select - city_select is the plugin which is basically used for to display the list of indian cities as a drop down list.

The implementation is simple

.script/plugin install git@github.com:abhishekpshukla/city_select.git


I have implemented it using jquery.


$("#user_state").change(function() {var id=('#user_state').attr("value"); $.ajax({url: "update_city/"+id, dataType: "script", type: 'get' })});

NOTE:
. "#user_state" is the dropdown list which contain the list of state name(I have consider the value of user_state as a FULL STATE NAME(for e.g. "Maharashtra") instead of STATE CODE).

Make a render file let say _city_select.erb and inside the controller render the _city_select.erb file and parse the selected state

Feel free to add a city if I am missing one.


Thansk

37 comments:

法榮 said...

淫亂火辣美女本土av情色視訊聊天免費色情網站性經驗色情成人影片色情視訊聊天av圖av情色情趣娃娃成人電影院淫蕩18禁色情電話情色成人網辣妹自拍台灣av女優台灣情色春宮台灣色情成人網站0401影音g點成人vcd情色影片520sex性愛圖視訊妹調情視訊美女聊天美女性交台灣性樂園成人影像走光打砲裸女寫真美女裸照露奶激突論壇情色圖片做愛線上a片做愛視訊情色成人成人交友穿幫色情a片情色全裸入鏡台灣情色網

v奎峰奎峰 said...

It's great!!..........................................

Rosalind治男Garney火吟 said...

驚悚故事分享,晚上別看哦
食人
計程車司機偶遇
恐怖電影生存指南

志平 said...

從人生中拿走友誼,猶如從生活中移走陽光........................................

素育如劭 said...

累死了…來去看看文章轉換心情~ ........................................

MathewP_Thu22269 said...

看看blog調整心情,又要來繼續工作,大家加油........................................

LoganO_Kellam1 said...

如果,人類也像鼠輩一般,花很多時間來吃飯和睡覺,一定會改善健康。 .............................................

DennisPick麗珠 said...

一定要保持最佳狀況呦,加油!!!期待你發表的新文章!.............................................

DaniloM_Wolff0正玲 said...

想要推動天下,先要發動自己。..................................................

ElisaCe慈佐lestin0708 said...

your wife is very charming!............................................................

estherme said...

Man proposes, God disposes.............................................................

Vi2139 said...

Many a true word is spoken in jest...................................................................

姵潔 said...

原來天鵝嫁給癩蛤蟆就會生出醜小鴨.................................................................

陳芳 said...

死亡是悲哀的,但活得不快樂更悲哀。....................................................................

江婷 said...

這麼好的部落格,以後看不到怎麼辦啊!!......................................................................

亦妮亦妮 said...

閒來無聊逛逛blog~~跟您打聲招呼~~.................................................................

靜宸靜宸 said...

成熟,就是有能力適應生活中的模糊。.................................................................

吳婷婷 said...

向著星球長驅直進的人,反比踟躕在峽路上的人,更容易達到目的。............................................................

賢林賢林 said...

感謝您費心的分享您的生活!讓我也感同身受!..................................................................

信豪信豪 said...

友誼能增進快樂,減少痛苦............................................................

嘉剛怡元 said...

感謝您寫下您的生活,也是把珍寶來和諸君分享的心意。 ............................................................

國昆 said...

單純喜歡你的部落格 留個言跟您問聲好~~............................................................

伯函 said...

好東西要和好朋友分享--感謝您............................................................

佳蓉 said...

文章優,圖片美,就連回文都很有意思~~~............................................................

楊儀卉 said...

超棒的,給予最大支持。(* ̄△ ̄*)............................................................

李吳文云威昌 said...

Knowledge is a treasure, but practice is the key to it.................................................

林聿希林聿希林聿希 said...

享受你自己的生活,不要與他人相比。............................................................

林聿希林聿希林聿希 said...

It is easier to get than to keep it.............................................................

黃智樺黃智樺 said...

拒絕冒險和成長的人,終將被生命的潮流陶汰。..................................................

文岳仲君 said...

A stitch in time saves nine.............................................................

偉曹琬 said...

尼采:「一棵樹要長得更高,接受更多的光明,那麼它的根就必須更深入黑暗。」............................................................

于庭吳 said...

寂寞又無聊 看到你的BLOG 加油喔!!..................................................

惠桂刁惠桂刁惠桂刁 said...

你的部落內容真棒,一定要持續下去! .................................[/url]...............

沛汝 said...

唯有穿鞋的人,才知道鞋的哪一處擠腳......................................................................

玉韓韓韓婷韓韓韓韓 said...

所有的資產,在不被諒解時,都成了負債............................................................

佳張張張張燕張張張張張 said...

唯有用熱情、用智慧去觀察事物,這事物才會把他的秘密,洩漏給我們......................................................................

王雅俊 said...

不錯的資訊~我會好好記下來!......................................................