Skip to content

Author: admin@master

Extract image src from a string

I’m trying to match all the images elements as strings, This is my regex: This works, but I want to extract the src of all the images. So when I execute the regular expression on this String: <img src=”http://static2.ccn.com/ccs/2013/02/img_example.jpg /> it returns: “http://static2.cc…

How to get all form elements values using jQuery?

Here is the HTML code: Here the code which will get all form field values: From this I am getting the output value as follows: I want the out as following: Answer You can use a serialize() function of JQuery: And read in PHP: And get ***data-**** to tag HTML5 you can see this example: And

More than one draggable image events in Kinect

I’m creating a script with draggable images which change src when double clicked as : Draggable image event in Kinect Earlier question was answered and works great though if I add another object which will also change src when double-clicked then nothing works. What could be the problem? Answer You have…