¡@

Home 

2014/10/16 ¤W¤È 12:02:04

jquery Programming Glossary: atpos

Binding validation script to form within jQuery Facebox plugin

http://stackoverflow.com/questions/5583469/binding-validation-script-to-form-within-jquery-facebox-plugin

script script type text javascript function validateForm var x document.forms emailForm emailAddress .value var atpos x.indexOf @ var dotpos x.lastIndexOf . if atpos 1 dotpos atpos 2 dotpos 2 x.length alert Not a valid e mail address return.. validateForm var x document.forms emailForm emailAddress .value var atpos x.indexOf @ var dotpos x.lastIndexOf . if atpos 1 dotpos atpos 2 dotpos 2 x.length alert Not a valid e mail address return false script head body div id wrapper h1 Gorgeous.. var x document.forms emailForm emailAddress .value var atpos x.indexOf @ var dotpos x.lastIndexOf . if atpos 1 dotpos atpos 2 dotpos 2 x.length alert Not a valid e mail address return false script head body div id wrapper h1 Gorgeous George h1..

Jquery mobile .click firing multiple times on new page visit

http://stackoverflow.com/questions/9067259/jquery-mobile-click-firing-multiple-times-on-new-page-visit

pageinit '.eb' .live 'click' function var id '.eb' .attr 'id' var to '#recipient' .val var message '#email' .html var atpos to.indexOf @ var dotpos to.lastIndexOf . if atpos 1 dotpos atpos 2 dotpos 2 to.length alert 'Please enter a valid email.. .attr 'id' var to '#recipient' .val var message '#email' .html var atpos to.indexOf @ var dotpos to.lastIndexOf . if atpos 1 dotpos atpos 2 dotpos 2 to.length alert 'Please enter a valid email address ' return false if to.length 0 alert 'Please.. to '#recipient' .val var message '#email' .html var atpos to.indexOf @ var dotpos to.lastIndexOf . if atpos 1 dotpos atpos 2 dotpos 2 to.length alert 'Please enter a valid email address ' return false if to.length 0 alert 'Please enter a valid..