Hello dear users of the hashcode project! When creating a pop-up window for your site on jQuery, I ran into a problem - a certain function is required to close the window.
Ideally, I would like to do this:
<span class="close" onclick="close()" callback="funcname">ΠΠ°ΠΊΡΡΡΡ</span> function close() { //.... if ($(this).attr('callback')!="") { // ΠΠ΅ΠΊΠΈΠΉ ΠΊΠΎΠ΄ ΠΊΠΎΡΠΎΡΡΠΉ Π²ΡΠΏΠΎΠ»Π½ΠΈΡ ΡΡΠ½ΠΊΡΠΈΡ funcname } }
Already tried $ (this) .attr ('callback') (); Please tell me how this can be done, it seems to me in JS there is a function like: vipolnit ('funcname'); but I just can't find it.