Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function changeli() {
- var totalli = $("#staerke1 li").size()+1;
- $("#test").attr("value",totalli);
- console.log(totalli);
- }
- $("#staerke1 li,#staerke2 li").click(function () {
- $(this).css({backgroundColor: "#ddd",fontWeight: "bold"});
- changeli();
- });
- <input type="button" id="test" value="testbutton">
Add Comment
Please, Sign In to add comment