Question: I am trying to import the DDMathParser framework into my Swift app. I tried following the installation instructions from the DDMathParser wiki, though it did not work:

> 
> DDMathParser is packaged as a Swift framework.
> 
> 
> Add DDMathParser.xcodeproj to your workspace and link MathParser.framework into your app.
> 
> 
> 

(Link: <https://github.com/davedelong/DDMathParser/wiki/Installing>)

Here's what I did:

1. I dragged in the .xcodeproj file into my project (from Finder to Xcode), and the file shows up under my project in the sidebar.
2. I went to my project settings and clicked the '+' under "Linked Frameworks and Libraries" and neither "MathParser.framework" or "DDMathParser.framework" are showing up in the list of available frameworks.
3. I tried building my application after adding the xcodeproj, but the framework files are still not showing up.

What am I doing wrong, or how do I correctly install this framework?

(Using Xcode 7.2.1)

Answer: 
I suspect you'd need to stop that text area from accepting user input once the limit is reached. If I'm right you should attach an `onKeyPress` event listener to that text area in which once that limit is exceeded, you should `return false`. Returning false means stopping the text area from accepting new characters.

* HTML

```
<textarea id="descr" name"descr" onKeyPress="return keyPressHandler()" ></textarea>

```
* JavaScript

```
function keyPressHandler(){
    if(/* limit is reached */){
        return false;
    }
}

```

Demo:

```js
function handle(e, event) {
  if (event.keyCode != 8 && e.value.length > 10) {
    return false;
  }
}
```

```html
<textarea onKeyPress="return handle(this, event)"></textarea>
```
I've tested a solution that works for what you are attempting .

Example - Using jQuery

```
$("#id-here").keyup(function(){

```

// Following line removes spaces from string

```
 var characters = $("#id-here").val().replace(/\s/g,''); 

```

// Set max length

```
  var max_length = 50;

```

// if statement checks if user input is equal to max length , if so the textarea will get an attribute property of read only which disables the user from entering more text

```
if(characters.length == max_length){

    $("#id-here").attr("readonly","readonly");
  }

});

```