css - jQuery add plus minus button for range for change div width -


Hello, I want to create plus the loan button to change my HTML:

  & Lt; Label = "points" & gt; Width: & lt; / Label & gt; & Lt; Input type = "category" name = "zodiac range" id = "numeral" value = "100" min = "10" max = "100" phase = "1" oninput = "this.form.amountInput.value = this. Value "/> & Lt; Input type = "text" name = "amountInput" id = "textnumber" min = "10" max = "100" step = "1" value = "100" oninput = "this.form.amountRange.value = this .value "/> Gt; & Lt; Span & gt;% & lt; / Span & gt; & Lt; Input type = "button" id = "plus" value = "+" /> & Lt; Input type = "button" id = "minus" value = "-" />   

I've tried

  var counter = document.getElementById ("digits"). value; $ ('Document'). (Function () {$ ('# zero).' (Function () {counter ++;}); $ ('# digits'). Change (function () {$ ('# navi'). CSS ( {Width: this.value + '%'});});    

here Everything is the solution to work:

  var counter = document.getElementById ("numeral") value; $ (document) .ready (function () ( $ ("# Plus") click (function () {var newValuePlus = parseInt ($ ("# textnumber"). Val ()) + 1; if (newvallplus> 100) returns; $ ("# val ( NewValuePlus);}); $ ("# minus") Click (function () {var newValueMinus = parseInt ($ ("# textnumber"). Val ()) - 1; $ ("# Digits, #textnumber"). Val (newValueMinus);}); $ ("# digits"). Change (function () {var newValue = $ (this) .val $ ("# Textnumber") Val (newValue);}); $ ("# textnumber"). Change (function () {var newValue = $ (this) .val (); $ ("# digits") .val (newValue);}) ;});    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -