Programmer's Realm

Friday, September 16, 2016

jQuery: Replacing All Blank Spaces in a String

var myVar= j$( "#myId option:selected" ).text().replace(/\s+/g, " ");
Posted by Unknown at 3:07 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Linked in

About Me

Unknown
View my complete profile

Blog Archive

  • ►  2018 (3)
    • ►  April (2)
    • ►  March (1)
  • ►  2017 (21)
    • ►  May (8)
    • ►  April (6)
    • ►  March (4)
    • ►  February (2)
    • ►  January (1)
  • ▼  2016 (34)
    • ►  October (2)
    • ▼  September (7)
      • SUGAR CRM: Retrieving Relationships Programaticall...
      • JavaScript: Replacing All Instances of a Character
      • JavaScript: Creating Objects
      • JavaScript: Using a Map Data Structure
      • jQuery: Replacing All Blank Spaces in a String
      • jQuery: Getting Selected Option
      • jQuery: Traversing All Rows Except Table Headers
    • ►  August (3)
    • ►  July (1)
    • ►  June (12)
    • ►  May (9)
Simple theme. Powered by Blogger.