Skip to content

kentreez dev

Just another WordPress Site

Tag: jQuery

jQuery escape bracket

Posted on October 18, 2012 by kentreez
  • ให้ใช้ \\ ในการ escape [ และ ]
  • ให้ใช้ double-quote ( ” ) ครอบด้วย

ตัวอย่าง

$(‘:radio[name=”domain\\[setup\\]”]’)

หมายเหตุ: ระวัง WordPress มันแปลง single-quote และ double-quote เป็นเฉียงๆ

Posted in UncategorizedTagged jQueryLeave a Comment on jQuery escape bracket
Proudly powered by WordPress | Theme: Underskeleton by getunderskeleton.com.