Git Product home page Git Product logo

monthselecter's Introduction

MonthSelecter

一个选择月份的js插件,依赖于jQuery

功能介绍

可以选择1-12月之间的月份,多次选择不允许重复

功能截图

功能截图

使用方法

引入MonthSelecrer.css,jQuery和MonthSelecter.js

<link href="~/CSS/MonthSelecrer.css" rel="stylesheet"/>
<script src="~/Javascript/jquery-1.10.2.min.js"></script>	
<script src="~/Javascript/MonthSelecter.js"></script>

DOM结构

<input type="text" name="month" class="ms" id="month1"/><br/>
<input type="text" name="month" class="ms" id="month2"/><br/>
<input type="text" name="month" class="ms" id="month3"/>

JS使用

<script>
	$(".ms").monthSelecter();
</script>

其他

  • 点击确定按钮时,会在控制台打印所选月份,同时向触发元素中写入所选月份
  • 清空按钮暂时没有实现功能

欢迎改进

monthselecter's People

Contributors

oooo0oooo0 avatar

Stargazers

   梁 铖 城 avatar 北海肥猫 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.