Last active
August 29, 2015 14:13
-
-
Save bekatom/4d001ecb35b1bdfeab02 to your computer and use it in GitHub Desktop.
replace links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* aaData[aiDisplay[i]][9] String was like this and i want to get Integer 6947 */ | |
| /*<a href="#"> | |
| <button type="button" class="btn btn-outline btn-success btn-xs"> 6947 </button> | |
| </a>*/ | |
| var cost = aaData[aiDisplay[i]][9].replace(/<a\b[^>]*>/i,""); | |
| cost = cost.replace(/<button\b[^>]*>/i,""); | |
| cost = cost.replace(/<\/a>/i, ""); | |
| cost = cost.replace(/<\/button>/i, ""); | |
| console.log(parseInt(cost)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment